Please help me with simple HTML Form coding....

by 3 replies
4
I dont know what the heck is going on... I'm trying to make a simple form where the reader inputs his/her email address, then hits "continue". Each time I test it, I hit "continue" and it pops up my email service to send the email... Which is not what i want, I want it sent it to me in the background.

I want the information to be sent to my email... Then the reader to be sent to the next page to fill out shipping information.

How do you do it?
#website design #coding #form #html #simple
  • Banned

    Well you will need more than HTML. The HTML/Javascript simply posts the input values to a PHP function which then emails the values to wherever you say. Some even store the data in a database which is then used to follow-up with the form submitter by sending them emails.

    Using the form as an opt-in this way is even more complicated and requires PHP or other server-side programming knowledge.

    If you are simply creating a form that then emails you the results and forwards the user to another page, try this:

    example html form code build a form with the complete source code

    hope this helps!
    Jason Lee
  • Ok, I tried the link. And after using it in the HTML, the button sends me to a page that says "
    Parse error: syntax error, unexpected T_VARIABLE in /home/content/40/5381040/html/mail.php on line 1"

    Any ideas?
  • [DELETED]
  • Can you post a link or your full code on here? Should be able to sort it then.

    The previous form was probably opening your email client as you might have had your email address in the 'action' part of the form HTML. As the other poster said, you need a PHP form processing script.

Next Topics on Trending Feed

  • 4

    I dont know what the heck is going on... I'm trying to make a simple form where the reader inputs his/her email address, then hits "continue". Each time I test it, I hit "continue" and it pops up my email service to send the email... Which is not what i want, I want it sent it to me in the background. I want the information to be sent to my email... Then the reader to be sent to the next page to fill out shipping information.