How To Do Forms
{-
BACK -}
Mailto:
forms offer a way to use forms on your pages without CGI scripts. The results
are E-mailed to your E-mail account. Applications for mailto forms include
guest books, questionnaires, feedback, and on-line shopping. In the examples,
each form module is shown with the corresponding HTML code directly above.
Declaring the form:
<FORM METHOD=POST ACTION="mailto:
username@your..com">
Please enter your e-mail address....
Optional Personal Data: Male
Female Other
Married Single
Divorced Enter Shoe Size: 6E
7C 9D
13E What name do you answer
to: Hey Dude Cutie
Yo Redneck
Check Boxes or Radio Buttons
<INPUT TYPE="checkbox"
NAME="w95" VALUE="CHECKED"> Win 95<BR>
<INPUT TYPE="checkbox" NAME="w31" VALUE="CHECKED">
Win 3.11<BR>
<INPUT TYPE="checkbox" NAME="unix" VALUE="CHECKED">
UNIX<BR>
<INPUT TYPE="checkbox" NAME="garb" VALUE="CHECKED">
Garbage<BR>
Win 95
Win 3.11
UNIX
Garbage
<INPUT TYPE="radio" NAME="heading of button" VALUE="button
name">
Pentium
486
Timex
Scrolling Lists or Pull-down
Lists
<SELECT NAME="Choice">
<OPTION>Outstanding <OPTION>Excellent
<OPTION>Above Average <OPTION>Average
<OPTION>Below Average <Option>Marginal
<OPTION>Unacceptable </SELECT>
Outstanding Excellent
Above Average Average Below
Average Marginal Unacceptable
<SELECT NAME="Choice">
<OPTION>Outstanding <OPTION>Excellent
<OPTION>Above Average <OPTION>Average
<OPTION>Below Average <OPTION>Marginal
<OPTION>Unacceptable </SELECT></FORM>
Outstanding Excellent
Above Average Average Below
Average Marginal Unacceptable
Blank text areas:
<FORM METHOD="POST"
ACTION="mailto:babeard@gte.net">
Please enter your message below:
<textarea Name="comments" Rows=5 Cols=65></textarea><P>
<input type="submit" value="Send">
<input type="reset" value="Cancel"> </form>
Preformatted text areas:
<FORM METHOD="POST"
ACTION="mailto:bigwind@his.com">
<TEXTAREA NAME="comment" ROWS=4 COLS=50> Stop wasting money!</TEXTAREA>
<input type="submit" value="Mail it"></FORM>
Handy for bugging your congressman:
Stop wasting money!
Text input boxes can be empty
or preformatted:
<INPUT TYPE="account"
NAME="account" SIZE="10"> Please enter your account
number<BR>
<INPUT TYPE="text" NAME="name" SIZE="15"
VALUE="Your Name"> Please enter your name:<BR>
Please
enter our account number: Please
enter your name:
Send and Reset Buttons:
<INPUT TYPE="submit"
VALUE="SEND FORM">
<INPUT TYPE="reset" VALUE="RESET"> </FORM>
{- BACK -}
Last modified: July
01, 2001
Comments: rickshelp@telus.net
Copyright © 1997-98 Rick's Web Page Help!