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

3 replies
  • WEB DESIGN
  • |
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?
#coding #form #html #simple
  • Profile picture of the author jasonthewebmaster
    Banned
    Originally Posted by burtonridr2 View Post

    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?

    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
    {{ DiscussionBoard.errors[2467780].message }}
  • Profile picture of the author burtonridr2
    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?
    Signature
    TIRED of the high cost of medical?

    We can help you SAVE up to 80% on Dental, Prescription, Chiropractic, and Vision for as low as $19.95/mo, Doctor Savings Club
    {{ DiscussionBoard.errors[2467848].message }}
  • Profile picture of the author icun
    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.
    {{ DiscussionBoard.errors[2469521].message }}

Trending Topics