Jump to content

PHP and HTML web form is not working


Go to solution Solved by yomanny,

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

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

  • Solution

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.