Forms: The SUBMIT and RESET Buttons
Table of Contents:
- Intro. to Forms
- Using Forms
- FORM Tags
- INPUT Tag
- SUBMIT & RESET
- TEXTAREA
- CHECKBOX
- RADIO
- SELECT
- Field LABEL
- PHP Variables
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:
| <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".
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:
| <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".
[Updated: Sunday, November 18, 2007]
