<FORM> and </FORM>

Description:

The <FORM> tag is used to get input from a user. You place <INPUT>, <TEXTAREA> and <SELECT> tags with the form to get the input. These tags allow data to be entered by a user and passed via ASP, PHP or CGI to a web site database or to an email program.

Attributes:

action=name
The name (full URL) of a routine to accept the data entered on the form and do something with it.
class=class
Indicates that the text is to be formatted using the specified class.
dir=direction
Indicates the direction (right or left) that the text is to be displayed. Useful for languages which display left to right.
enctype=data
Specifies the MIME type for the data entered.
event=JavaScript
When event occurs, execute the specified JavaScript.
id = "name"
You can give a text a name, which allows it to be referenced and changed in a script (dynamic HTML).
lang="lang"
Indicates the language of the text within the text.
method=method
Indicates which HTTP method will be used to accept the data.
GET Data is appended to the URL of the program. Available in QUERY_STRING.
POST Data passed in a data body.
onreset=JavaScript
Javascript routine to be executed if the reset button is pressed.
onsubmit=JavaScript
Javascript routine to be executed if the submit button is pressed.
style="style"
Defines the style in which the text will be displayed. This overrides any style elements at an "outer" level, such as from the BODY or the Cascading Style Sheet.
title="title"
You can give a text a title if you want. This provides some additional information about the text. I'm not sure why you would want to do this, but you could.

Examples:

<form method="POST" 
  action="http://www.internet-tips.net/cgi-bin/ennyfrms.cgi">

Get the data using the POST method and pass to a CGI routine called ennyfrms.cgi.

Additional Information