Jump to content


Photo

PHP and HTML web form is not working


Best Answer yomanny, 20 March 2013 - 04:01 AM

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

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 uktab

uktab

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 19 March 2013 - 12:26 PM

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 !

Attached Files


Edited by uktab, 19 March 2013 - 12:27 PM.


#2 yomanny

yomanny

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts
  • LocationStockholm, Sweden
  • Age:24

Posted 20 March 2013 - 04:01 AM   Best Answer

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



#3 uktab

uktab

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 20 March 2013 - 05:10 AM

Thanks for your fast reply !

Worked great :happy-04:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com