(Site Identification)

'Eye' Focus: Web Support Tutorials

Forms: The SUBMIT and RESET Buttons


SUBMIT:

Once the form has been filled out it needs to be sent to the server. This is usually accomplished with a button to submit the data. Using an input type of SUBMIT creates a button that the user clicks to send a completed form.

Syntax: (skip code)

<input type="submit" value="...">

VALUE:

The VALUE parameter lets the creator of the form define words displayed on the button. If the VALUE attribute is omitted the default name is "Submit Query".

SUBMIT is defined with
VALUE="Test This Form".


SUBMIT has no
VALUE parameter.


(to Top) RESET:

The type can also be set to RESET instead of SUBMIT. This option will reset all the fields in the form to the values when the page was first received, so that the user may start again.

Syntax: (skip code)

<input type="reset" value="...">

VALUE:

The VALUE parameter here works the same as with the SUBMIT. If the VALUE attribute is omitted the default name is "Reset".

RESET is defined with
VALUE="Clear This Form".


RESET has no
VALUE parameter.


[Updated: Sunday, November 18, 2007]