FORM
This is used to define an HTML form, and you can have more than one form
in the same document. Both the start and end tags are required. For very
simple forms, you can also use the ISINDEX
element. Forms can contain a wide range of HTML markup including several
kinds of form fields such as single and multi-line
text fields, radio button groups, checkboxes, and menus.
- action
- This specifies a URL which is either used to post forms via email,
e.g. action="mailto:foo@bar.com", or used to invoke a
server-side forms handler via HTTP, e.g.
action="http://www.acme.com/cgi-bin/register.pl"
- method
- When the action attribute specifies an HTTP server, the method
attribute determines which HTTP method will be used to send the form's
contents to the server. It can be either GET or
POST, and defaults to GET.
- enctype
- This determines the mechanism used to encode the form's contents.
It defaults to application/x-www-form-urlencoded.
Further details on handling forms are given in RFC 1867.