Log in

View Full Version : Forms??



trini shotta
09-18-2006, 09:55 PM
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!

djr33
09-19-2006, 12:27 AM
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.

Twey
09-19-2006, 07:09 AM
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.

djr33
09-20-2006, 05:26 AM
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.)

Twey
09-20-2006, 08:54 AM
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.

trini shotta
09-20-2006, 06:26 PM
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?

Twey
09-20-2006, 06:58 PM
Any text editor should serve you fine. Notepad, TextEdit, Kate (http://kate.kde.org/), vim (http://www.vim.org/)... the latter two even have syntax highlighting.

Aragoth
10-18-2006, 05:34 PM
I'm purely a Notepad ++ (http://notepad-plus.sourceforge.net/uk/site.htm) kinda guy. That is actually a fairly nice notepad replacement... Here's a link to other HTML Editor Programs: http://www.dynamicdrive.com/forums/showthread.php?t=13842

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

Twey
10-18-2006, 07:27 PM
Nonsense -- a good editor does not a coder make :p Most of the scripts on my site (http://www.twey.co.uk/) have started life in this very "Quick Reply" box.

mburt
10-18-2006, 07:31 PM
a good editor does not a coder make
Mixing up sentence structure, we are? :p

Twey
10-18-2006, 07:47 PM
Don't blame me -- I didn't make up the expression :) If it were my fault, I'd probably got confused and used Japanese sentence order, making it "good editor coder make not."

Aragoth
10-25-2006, 03:04 PM
Alright, Yoda. Nonetheless, it would probably have been better if I had learnt with a better program, just because my knowledge ranges from opening a tag to closing one. And making basic tables. And changing font. And adding images and links and linked images. And that is about it. Its all good. I just want to be a little better.

suehue
11-29-2006, 10:48 PM
EditPad Lite is a personal favorite for me (although not sure it is widely available still, always keep the install file tucked away). I use FrontPage to lay out a design, then copy and paste the html into EditPad and clean up the messy, bloated code that FrontPage generates.

dog
11-30-2006, 05:23 PM
Any text editor should serve you fine. Notepad, TextEdit, Kate, vim... the latter two even have syntax highlighting.

Can you recommend anything for working on the move. I'm travelling a lot and am on the look out for a text editor that I can use online and does not need to be downloaded.

Internet cafe friendly could be.

dog
11-30-2006, 05:37 PM
EditPad Lite is a personal favorite for me (although not sure it is widely available still, always keep the install file tucked away). I use FrontPage to lay out a design, then copy and paste the html into EditPad and clean up the messy, bloated code that FrontPage generates.

I found the same thing with Dreamweaver. That I was creating things in the design view and then having to tidy up the mess it was making of the code afterwards.

Now I'm 'designing' my sites as images, using an illustration or image-editing program, or just paper and pen, and recreating the actual webpages through coding. It works out well as it means you always know what all of the code is doing and why you put it in.

Also, you mentioned that your using tables. Do you know about Tableless Design, using divs to control the layout. It produces far more adaptable pages once you get the hang of it.

I found and enjoyed tutorials on htmldog (http://htmldog.com/) and webmonkey.com (http://www.webmonkey.com/). I like to keep it Monkey or Dog related.