(Site Identification)

'Eye' Focus: Web Support Tutorials

Forms: The FORM Tag


The FORM tag has an opening and closing part, both must be used for the form to function properly. It is possible to have multiple forms on a page provided there is a FORM tag opening and closing each.

NOTE: Forms CANNOT be nested within forms.

Syntax: (skip code)
<form name="..." action="..." method="post">
... Yadda, Yadda, Yadda ...
</form>

(to Top) Definitions


NAME:

The forms NAME is occassionally needed for interaction with JavaScripts and other dynamic content.

ACTION:

ACTION identifies the server and script it is to use for evaluating and taking action, using the data from the form.

METHOD:

The METHOD specifies which method to use to pass the form data to the script that processes it. This attribute is almost always set it to "post" because forms generally send information. When a form is specifically requesting information the method used is "get."


[Updated: Sunday, November 18, 2007]