Dynamicdeezign, documentation of html and css
The guide to create your Web site on Internet
 

<form> : interactive form
The FORM element acts as a container for controls. It specifies:
The layout of the form (given by the contents of the element).
The program that will handle the completed and submitted form (the action attribute). The receiving program must be able to parse name/value pairs in order to make use of them.
The method by which user data will be sent to the server (the method attribute).
A character encoding that must be accepted by the server in order to handle this form (the accept-charset attribute). User agents may advise the user of the value of the accept-charset attribute and/or restrict the user's ability to enter unrecognized characters.
A form can contain text and markup (paragraphs, lists, etc.) in addition to form controls.

Attributes
-) action
This attribute specifies a form processing agent. User agent behavior for a value other than an HTTP URI is undefined.
-) method : get|post
This attribute specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are "get" (the default) and "post". See the section on form submission for usage information.
-) enctype
This attribute specifies the content type used to submit the form to the server (when the value of method is "post"). The default value for this attribute is "application/x-www-form-urlencoded". The value "multipart/form-data" should be used in combination with the INPUT element, type="file".
accept-charset
This attribute specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received.
The default value for this attribute is the reserved string "UNKNOWN". User agents may interpret this value as the character encoding that was used to transmit the document containing this FORM element.
-) accept
This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly. User agents may use this information to filter out non-conforming files when prompting a user to select files to be sent to the server (cf. the INPUT element when type="file").
-) name
This attribute names the element so that it may be referred to from style sheets or scripts. Note. This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements.

Example

<form method="post" action="#" name="register_form">
Your name:
<input type="text" name="lastname" maxlength="50" size="20" value="">
Adress:
<input type="text" name="adress" size="20" maxlength="150" value="">
Country
<select name="country">
<option value="">Choose...</option>
<option value="USA">USA</option>
<option value="France">France</option>
<option value="UK" selected>UK</option>
<option value="Germany">Germany</option>
</select>
Type your text
<textarea name="text_form" cols="50" rows="3" wrap="VIRTUAL"> the text </textarea>
type your password
<input type="password" name="password_form" value="">
<input type=checkbox name="check_form" value=""> check this
<input type="submit" name="Submit" value="Submit">       <input type="reset" name="reset" value="Reset">
<input type="hidden" name="hidden_form" value="your_hiddenvalue">
</form>


Gives


Your name:

Adress:

Country

Type your text

type your password

check this
     






For complete reference see html reference at W3C
OP..19   OP..20   OP..21   OP..22   OP..23   OP..24   OP..25   OP..26   OQ..1   OR..1   OR..2   OR..3   OR..4   OS..1  
OT..1   OV..1   OW..1   OX..1   OZ..1