margecc Posted February 23, 2007 Posted February 23, 2007 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 Quote
margecc Posted February 23, 2007 Author Posted February 23, 2007 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']); Quote
TCH-Bruce Posted February 23, 2007 Posted February 23, 2007 Welcome to the forums Colleen Glad you got it sorted. Sorry we didn't get an answer for you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.