uktab Posted March 19, 2013 Share Posted March 19, 2013 (edited) Hi, I followed some instructions on a site to help me build a web form, then I found some free code that sends the data from the form to my email address, and then a 'Thank you' page should show. I can enter data into the form, but when I press 'Submit' nothing happens. The 'Thank you' page doesn't come up, and the data doesn't get emailed. I have attached the 3 web pages. radioform.php - the form simplescript.php - the code that sends the data to the email address radioformend - the 'Thank you' page Thank you for any help ! radioform.php simplescript.php radioformend.html Edited March 19, 2013 by uktab Quote Link to comment https://forums.phpfreaks.com/topic/275879-php-and-html-web-form-is-not-working/ Share on other sites More sharing options...
Solution yomanny Posted March 20, 2013 Solution Share Posted March 20, 2013 In radioform.php on line 9 you must also tell the script where to send the form data (should be simplescript.php) with action="simplescript.php" So edit the line to the following: <form action="simplescript.php" method="POST" enctype="application/x-www-form-urlencoded" name="radioenquiry" id="radioenquiry"> - W Quote Link to comment https://forums.phpfreaks.com/topic/275879-php-and-html-web-form-is-not-working/#findComment-1419765 Share on other sites More sharing options...
uktab Posted March 20, 2013 Author Share Posted March 20, 2013 Thanks for your fast reply ! Worked great Quote Link to comment https://forums.phpfreaks.com/topic/275879-php-and-html-web-form-is-not-working/#findComment-1419776 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.