Syntax
<FORM>...</FORM>
Attribute Specifications
ACTION=URI (form handler)
METHOD=[ get | post ] (HTTP method for submitting form)
ENCTYPE=ContentType (content type to submit form as)
ACCEPT-CHARSET=Charsets (supported character encodings)
TARGET=FrameTarget (frame to render form result in)
ONSUBMIT=Script (form was submitted)
ONRESET=Script (form was reset)
common attributes
Contents:
In HTML 4.0 Strict, one or more SCRIPT or Block-level elements except FORM
In HTML 4.0 Transitional, Inline elements or Block-level elements except FORM
Contained in:
APPLET, BLOCKQUOTE, BODY, CENTER, DD, DEL, DIV, FIELDSET, IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH
<form action="http://www.yourserver.co.uk/cgi/formmail.cgi" method="POST"">
Please select who you would like to send this enquiry to:<BR>
<select name="recipient">
<option name="enquiries" value="enquiries@yourserver.co.uk">Enquiries
<option name="webmaster" value="webmaster@yourserver.co.uk">Webmaster
</select><br>
<input type="hidden" name="subject" value="From the eluk contacts page">
<input type="hidden" name="redirect" value="http://www.eluk.co.uk/next.htm">
Your Full Name<br>
<input NAME="realname" type="textbox" size="40"><br>
Email address<br>
<input name="email" type="textbox" value="" size=40> <br>
Home or business address
<select name="Content">
<option value="Home">Home
<option value="Business">Business
<option value="Other">Other
</select><br>
<input NAME="House Name/Number" type="textbox" value="" size="40"><br>
<input name="street" type="textbox" value="" size="40"> Street <br>
<input name="town" type="textbox" value="" size="40"> Town <br>
<input name="city" type="textbox" value="" size="40"> City<br>
<input name="county" type="textbox" value="" size=40> County<br>
<input name="Post/Zip Code" type="textbox" value="" size="10"> Post/Zip code<br>
<input name="Country" type="textbox" value="" size="40"> Country<br>
<input name="Tel" type="textbox" value size="40"> Telephone Number<br>
<input name="Fax" type="textbox" value size="40"> Fax Number <br>
I am interested in the following services<br>
<input type="checkbox" name="services required 1" value="Email Facilities"> Advertising on eluk<br>
<input type="checkbox" name="services required 2" value="Link from eluk to existing website"> Link from eluk to existing website<br>
<input type="checkbox" name="services required 3" value="Report a problem"> Report a problem<br>
<input type="radio" name="services" value="I think this site is great"> I think this site is great<br>
<input type="radio" name="services" value="I think this site is OK"> I think this site is OK<br>
<input type="radio" name="services" value="I think this site is rubish"> I think this site is rubish<br>
Other please specify <input name="other services" type="textbox" value=""><br>
Comments:<br><textarea rows=5 cols="32" name="Comments"></textarea><br>
Thank you for taking the time to fill out application. Please click 'Submit' once and you enquiry will be looked into as soon as possible.
<br>
<input type="submit" value="Submit"><input type="reset" value="Clear">
</form>
A mailto URI (e.g., mailto:simon@eluk.co.uk) is also allowed as an ACTION, but this is not supported by all browsers. Non-supporting browsers such as Microsoft Internet Explorer 3.x typically will open a blank e-mail message when the user submits a mailto form. Even on supporting browsers, mailto forms are troublesome in that they fail to provide feedback to the user after the form submission.
_blank renders the response in a new, unnamed window
_self renders the response in the current frame (useful for overriding a BASE TARGET)
_parent renders the response in the immediate FRAMESET parent
_top renders the response in the full, unframed window
ONSUBMIT, when the form is submitted;
ONRESET, when the form is reset.