Jump to content

PHP and HTML web form is not working


uktab

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/275879-php-and-html-web-form-is-not-working/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.