Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating a Form to post to my Email

    I wanted to make a quick Form & started using frontpage.

    I havent used it for a while.

    Heres my code so far. the dropdown lists, I have not added the info for the lists as yet.

    How do I get it to post it so that when I press submit.
    All the completed fields & the list selections, is emailed to me?

    <html>

    <head>
    <meta http-equiv="Content-Language" content="en-gb">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Flying from</title>
    </head>

    <body>

    <p>&nbsp;</p>
    <form method="POST" action="--WEBBOT-SELF--">
    <!--webbot bot="SaveResults"
    U-File="C:\Documents and Settings\c5479\Desktop\Form\_private\form_results.txt"
    S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
    S-Email-Format="TEXT/PRE" S-Email-Address="lee.egglestone@durham.gov.uk"
    B-Email-Label-Fields="TRUE" S-Builtin-Fields -->
    <p>Flying from : 1st Choice&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
    S-Display-Name="1st Choice" B-Value-Required="TRUE" --><select size="1" name="D1">
    </select>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 2nd Choice&nbsp;&nbsp;&nbsp; <select size="1" name="D2">
    </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3rd
    Choice&nbsp;&nbsp;&nbsp; <select size="1" name="D3">
    </select></p>
    <p>Flying To <!--webbot bot="Validation" S-Display-Name="Flying To"
    S-Data-Type="String" B-Allow-Letters="TRUE" --><input type="text" name="T1" size="20"></p>
    <p>Depart&nbsp;&nbsp;&nbsp; </p>
    <p>Return</p>
    <p>or Approx Duration <!--webbot bot="Validation" S-Display-Name="Duration"
    S-Data-Type="Number" S-Number-Separators=",." --><input type="text" name="T2" size="20"></p>
    <p>Flexible Date +/- 3days&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C1" value="ON"></p>
    <p>Adults&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
    S-Display-Name="Adults" B-Value-Required="TRUE" --><select size="1" name="D4">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Children&nbsp;&nbsp;&nbsp;
    <select size="1" name="D5">
    <option selected>0</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    </select></p>
    <p>If Children, state Ages&nbsp;&nbsp;&nbsp; <input type="text" name="T3" size="20"></p>
    <p>No of Rooms&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
    S-Display-Name="Rooms" B-Value-Required="TRUE" --><select size="1" name="D6">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    </select></p>
    <p>Star&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation" B-Value-Required="TRUE"
    --><input type="radio" value="V1" checked name="R1">&nbsp;&nbsp;
    1-3&nbsp;&nbsp;&nbsp; <input type="radio" name="R1" value="V2">&nbsp;&nbsp;&nbsp;
    4-5&nbsp; <input type="radio" name="R1" value="V3">&nbsp;&nbsp; 5+</p>
    <p>Email Address&nbsp;&nbsp;&nbsp; <input type="text" name="T4" size="20">
    required for Quote. Entering also subscribes to Special Offers &amp; Updates.</p>
    <p>Do you require Insurance
    Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C2" value="ON" checked>Yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="C3" value="ON"> No</p>
    <p>Do you require Car Parking
    Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C4" value="ON" checked>
    Yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C5" value="ON">
    No</p>
    <p>Any Other Details</p>
    <p><textarea rows="6" name="S1" cols="74"></textarea></p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>

    </body>

    </html>

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [ CODE ] [ / CODE ]

    You can either use a server side language such as PHP. Or simply set the forms action to your email address.

    <form method="POST" action="youremail@email.com">

    That would open a new email in their default client though.

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm Im presuming the free webhosting sites dont let you use stuff like php.

    I have a geocities website. I was just going to create a page on it and then use a link to redirect to the correct page which I will have this Form on.

    For the form, i dont like the idea that using the post to my email, that to do so, the person posting would have to get there email client opened to send it.

    PHP does sound the better option

    Oh wait, on my geocities site, i found a forum i used before.
    its got something called Response-O-Matic service.
    I tried it, filled in theform and it mailed the results back 2me


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •