Creating HTML Forms from Harold Goldstein;
http://goldray.com/forms/forms.htmThis document describes how to create HTML forms. Also refer to tutorials by PageResource or HTML Goodies. Responsomatic does mailto processing of your form (see my list for other options). Or download/install a script of your own like FormMail (quick setup - or high security version), Soupermail (uploads, multi-part forms, boolean), AlienForm (total flexibility in setup, calculations, multi-part forms), or bnbform (very flexible-user can select recipient).Wufoo allows the form to be created. hosted and processed. Also see articles from Evolt and from Internet.com on form usability.
text fields | password/hidden fields | checkbox buttons | radio buttons | selection/dropdown menus | reset/submit buttons
A Form container tag opens/closes an HTML Form.
<FORM METHOD=POST ACTION="URL"> ... form content ... </FORM>All input fields of the form are placed between these tags. You may have multiple forms on a single page but you may not nest forms. METHOD specifies the protocol, GET or POST, used to pass the form data to the program which processes it. We will use POST (which most be upper case) to transmit form data. ACTION is the URL to which we submit the data for processing. You may use ACTION="mailto:email_address" and your browser may, email the results (unreliable!).
<FORM METHOD=POST ACTION="http://www.response-o-matic.com/cgi-bin/rom.pl"> - uses a service that echoes/emails the form data - see the Response-o-matic site for details but you must use:
<input type=hidden name="your_email_address" value="youremail@yourhost">
The submit button (note method=get) can also send the user directly to another website. For example:<form method=get action="http://goldray.com/webfolio.htm">
<input type="submit" value="Go to my Webfolio"> </form>
An image may be used as a select button with input type=image. This is comparable to setting the image as a link but the coordinates of the mouse are returned and can be used by a script. (note method=get)<form method=get action="http://goldray.com/webfolio.htm">
<input type="image" src="back.gif"> </form>
A selection menu can also jump to a URL. Required is, for the top example a CGI script (jump.cgi), and for the bottom example a javascript function (see viewURL). My advanced forms handout has more on this.<FORM method=get action="jump.cgi"> <select size=3 name="goto">
<option value="webfolio.htm">Goldray Webfolio
<option value="dclocal.htm">DC Local Pages
<option value="http://cws.iworld.com">Winsock Software
</select><input type="submit" value=" JUMP! "></FORM>
<FORM NAME="navigForm"> <SELECT size=3 NAME="urlSelect">
<OPTION>Top Choice <OPTION>Next Choice <OPTION>Last Choice </SELECT> <INPUT TYPE="button" VALUE="View" onClick="viewURL(this.form)"> </FORM>You may now add color to selection menus; more details here.
Insert your style definition inside the document's HEAD section: and in the BODY
for Version 3.1.2009
Copyright © 2009 Goldray Consulting Group
http://goldray.com/forms/forms.htm