cfgcjm Posted February 28, 2008 Share Posted February 28, 2008 I'm trying to set up a php email form, i'm not getting any errors but i'm not getting the form emailed to me. This is my code...I've been looking for a while and just can't find the problem. <?php if (isset ($_POST['submit'])) { $Q1 = $_POST['Q1']; $Q2 = $_POST['Q2']; $Q3 = $_POST['Q3']; $Q4 = $_POST['Q4']; $Q5 = $_POST['Q5']; $Q6 = $_POST['Q6']; $Q7 = $_POST['Q7']; $Q8 = $_POST['Q8']; $Q9 = $_POST['Q9']; $subject="St Johns Web Survey"; $email="web@stjohnsuccjonestown.org"; $recipient = 'chris@digiconmediagroup.com'; $forminfo ="The following survey was submitted:\n\n\n 1. What is your age? $Q1\n\n 2. How would you rate yourself as an Internet user? $Q2\n\n 3. How did you first hear about our website? $Q3\n\n 4. How often do you visit our site? $Q4\n\n 5. How satisfied are you with your experience at stjohnsuccjonestown.org? $Q5\n\n 6. If you are not totally satisfied, please describe the reasons for your dissatisfaction below: $Q6\n\n 7. Please tell us what can be done to improve the quality of the information on our website: $Q7\n\n 8. What is it about this site that you would most like to see improved? $Q8\n\n 9. What changes, additional features, or information would you like to see on our website? $Q9"; $sent=mail($recipient, $subject, $forminfo, "From: $email"); } ?> Quote Link to comment Share on other sites More sharing options...
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.