Jump to content

Recommended Posts

Posted

I am only on chapter 3 of my "Learn PHP" book, but unfortunately I have to get this project done.

 

I have an order form that I built using UFM. Half the form info is not required. I currently have this working so it just prints "Not Supplied" in the confirmation email to the customer, but I would prefer it to not appear in the emails at all. Can anyone help? This is included in the controls.php file and it works, but it is not what I want.

 

>if(!isset($_POST['purchase_order']) || $_POST['purchase_order'] == '') $_POST['purchase_order'] = 'Not Supplied';

 

Thanks

Colleen Macintyre

Posted
I am only on chapter 3 of my "Learn PHP" book, but unfortunately I have to get this project done.

 

I have an order form that I built using UFM. Half the form info is not required. I currently have this working so it just prints "Not Supplied" in the confirmation email to the customer, but I would prefer it to not appear in the emails at all. Can anyone help? This is included in the controls.php file and it works, but it is not what I want.

 

if(!isset($_POST['purchase_order']) || $_POST['purchase_order'] == '') $_POST['purchase_order'] = 'Not Supplied';

 

Thanks

Colleen Macintyre

 

 

OK I found my answer. If anyone using UFM is curious, in the controls.php file at

 

if(isset($_POST['your_file_name']) AND $_POST['your_file_name'] == '') {

unset($_POST['your_file_name']);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...