Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Forms??

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Forms??

    Hey
    Im trying to make a form for my site. I'm not knowledgeable in CGI. I made a form in front page and i need to know if and how to send the results to my email address. Here is my HTML so far:
    <html>

    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <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>Nightlife Bookings</title>
    </head>

    <body bgcolor="#000000" text="#FFFFFF">

    <p align="center"><font face="Copperplate Gothic Bold" color="#FF0000" size="6">Nightlife
    Bookings</font></p>
    <p align="center"><font face="Copperplate Gothic Bold" color="#FFFFFF" size="5">Book
    your limo</font></p>
    <p align="center">&nbsp;</p>
    <p align="center">&nbsp;</p>
    <form method="POST" action="--WEBBOT-SELF--">
    <!--webbot bot="SaveResults"
    U-File="C:\Documents and Settings\Peter\Desktop\Nightlife\Website\Order form"
    S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
    S-Email-Format="TEXT/PRE" S-Email-Address="nlifebookings@hotmail.com"
    B-Email-Label-Fields="TRUE" S-Builtin-Fields
    U-Confirmation-Url="http://www.google.com" -->
    <p>Name: <input type="text" name="Name" size="20"></p>
    <p>Phone Number: <!--webbot bot="Validation" B-Value-Required="TRUE"
    I-Minimum-Length="10" --><input type="text" name="Phone" size="20"></p>
    <p>E-mail: <input type="text" name="Email" size="20"></p>
    <p>Date limo needed: <select size="1" name="D1">
    <option>Jan</option>
    <option>Feb</option>
    <option>Mar</option>
    <option>Apr</option>
    <option>May</option>
    <option>Jun</option>
    <option>Jul</option>
    <option>Aug</option>
    <option>Sep</option>
    <option>Oct</option>
    <option>Nov</option>
    <option>Dec</option>
    </select><select size="1" name="D2">
    <option>01</option>
    <option>02</option>
    <option>03</option>
    <option>04</option>
    <option>05</option>
    <option>06</option>
    <option>07</option>
    <option>08</option>
    <option>09</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    </select><select size="1" name="D3">
    <option>2006</option>
    <option>2007</option>
    <option>2008</option>
    </select></p>
    <p>Pick-up time: <input type="text" name="Pickup1" size="20"><input type="radio" value="AM" checked name="Pickup">AM
    <input type="radio" name="Pickup" value="PM">PM</p>
    <p>Return time: <input type="text" name="Dropoff1" size="20"><input type="radio" name="Dropoff" value="AM" checked>AM
    <input type="radio" name="Dropoff" value="PM">PM</p>
    <p>Pick-up/Return address:&nbsp; <textarea rows="2" name="PickupAddress" cols="20"></textarea></p>
    <p>Destination address/Nightclub: <textarea rows="2" name="DestinationAddress" cols="20"></textarea></p>
    <p>Type of limousine requested:</p>
    <p><input type="radio" name="R1" value="LinTowncar" checked>Lincon Towncar
    Stretch (10)</p>
    <p><input type="radio" name="R1" value="Excursion21">Ford Excursion SUV
    stretch (12)</p>
    <p><input type="radio" name="R1" value="Navigator">Lincon Navigator SUV
    stretch (14)</p>
    <p><input type="radio" name="R1" value="Excursion22">Ford Excursion SUV extra
    stretch (20)</p>
    <p><input type="radio" name="R1" value="Bus">Limo Bus (30)</p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>

    </body>

    </html>

    If anyone knows a better and more efficeint way, let me know!
    Thanks!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    First, the only line of code from the WHOLE page that matters is this:
    <form method="POST" action="--WEBBOT-SELF--">

    Second, I have no idea what --WEBBOT-SELF-- means. Maybe that means there's some strange addon to your site that handles forms. If not, that means it just won't do anything.

    If you want the cheap way of doing it, use mailto:your@email.com as the action. That requires going through the users mail program, though.

    If you want something better than this, I say welcome to PHP.
    With the method of post, your values are available in php as $_POST['fieldname'], and you can then use php to organize them, etc.
    Then just use the mail() function to email them to yourself.
    Not too hard once you learn a bit about php.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Second, I have no idea what --WEBBOT-SELF-- means.
    We're talking FrontPage Extensions. I'm guessing --WEBBOT-SELF-- is the URL of the current page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah. That's shown by the --...--?
    Well, I guess we'd need more info to be able to help.
    And since I have no clue how frontpage extensions work, I can't do much.
    I'd still recommend php as it's more available for all servers, not just those with frontpage extensions enabled. I think that's windows only.
    And, considering that, the first thing to do would be to check that frontpage extensions are enabled on your host. Check your hosting control panel, or whatever they give you to control it. (If you have your own server, then look into setting up frontpage extensions if you don't have them already.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'd still recommend php as it's more available for all servers, not just those with frontpage extensions enabled.
    PHP still has to be enabled, though It is more common, though, yes.
    I think that's windows only.
    No, it runs on UNIX-based servers too.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the help! i have no idea on php programming, but i'll try to learn. Also, i've been told not to use front page for web design. What would you guys recommend?

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Any text editor should serve you fine. Notepad, TextEdit, Kate, vim... the latter two even have syntax highlighting.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I'm purely a Notepad ++ kinda guy. That is actually a fairly nice notepad replacement... Here's a link to other HTML Editor Programs: http://www.dynamicdrive.com/forums/s...ad.php?t=13842

    You know, now that I think about it, Notepad is probably the reason I suck so much...

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Nonsense -- a good editor does not a coder make Most of the scripts on my site have started life in this very "Quick Reply" box.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by Twey
    a good editor does not a coder make
    Mixing up sentence structure, we are?
    - Mike

Bookmarks

Posting Permissions

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