AlanB09 Posted December 13, 2009 Share Posted December 13, 2009 okay i have this form ... saved as feedback.html <html> <head> <title> Contact Us </title> <body bgcolor="orange"> <center> </head> <body> <!-- Sets up the Form --> <form name="contact" method="POST" action="contactmail.php" /> Your Name:<br /><input type="text" name="fullname" value="Fullname"/><br /><br /> Your Email:<br /><input type="text" name="email" value="Email" /> </form> <h2>Your Comments</h2><br /> <textarea name="comments" rows="15" cols="50" /> </textarea> <br /> <center><input type="submit" name="submit" value="Submit"> </body> </html> and i have this script.. saved as contactmail.php <html> <body> <?php $name = $_POST['fullname']; $email = $_POST['email']; $feedback = $_POST['comments']; echo "Thank You $name"; echo "Your feedback: $feedback"; echo "<br />"; echo "is much appreciated and has been sent to the webmaster"; echo "<b>We will be in touch soon. Namaste</b>"; ?> </body> </html> i cant see any problems with the script, but for some reason, when i click submit.... nothing happens :S what am i doing wrong ? any help much appreciated, thank you Link to comment https://forums.phpfreaks.com/topic/185000-feedback-form-click-submit-and-nothing-happens-s-help-please/ Share on other sites More sharing options...
mrMarcus Posted December 13, 2009 Share Posted December 13, 2009 your submit button, as well as your textarea, are outside your form. see how you closed it before the submit button. that's your problem. Link to comment https://forums.phpfreaks.com/topic/185000-feedback-form-click-submit-and-nothing-happens-s-help-please/#findComment-976583 Share on other sites More sharing options...
AlanB09 Posted December 13, 2009 Author Share Posted December 13, 2009 thank you .. i really didnt realise that was how it was meant to be :$ ill get there lol Link to comment https://forums.phpfreaks.com/topic/185000-feedback-form-click-submit-and-nothing-happens-s-help-please/#findComment-976587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.