The HTML element
<form ...> .... </form>defines a form for interactive input via the CGI mechanism. Within the <form> ... </form> tags there will be number of input elements for interactive input. This collection of elements constitutes a form.
Once the various boxes within the form have been filled and the "submit" button has been hit the user entered values are transmitted to the server where a CGI back end can process the information and generate whatever reply is required.
A <form> tag has three significant attributes, method, action and enctype.
For simple use the method attribute can be set to either get or post. This attribute controls the method by which the user entered data is communicated to the back end program.
Many authors suggest that the put method is preferable but the only reasons for selecting it in preference to get are
The value of the action attribute specifies what is to be done when the form-filling is complete. Its value will be simply a URL, if this is the name of an executable file then the file will be executed, however it may simply refer to a WWW page, however this is unusual.
Here is an example<form METHOD="GET" ACTION="http://www.scit.wlv.ac.uk/cgi-bin/test">
This determines the method used to encode the form's contents. It defaults to application/x-www-form-urlencoded. It need not be quoted unless you are using the <input> tag with the type attribute set to file when the value should be set to multipart/form-data