The Submit button allows a visitor to send their form choices to you (as you defined in the FORM METHOD properties section).
ATTRIBUTE |
REQUIRED? |
DESCRIPTION |
NAME=" " |
Optional |
When the user submits the form, no message usually accompanies the data. However, using the name option, the name of the submit button can also be included in the submitted data. See example below. |
ACCEPT=" " |
Optional |
By default, the text on the Submit button reads Submit. However, this text can be changed by using the VALUE property. |
What did you think of my WebSite?
<INPUT TYPE="submit" NAME="Loved_it" VALUE="Loved it">
<INPUT TYPE="submit" NAME="Hated_it" VALUE="Hated it">
This form returns all the other form data, as well as which submit button was used to submit the form.
NOTE |
For this example to work it must be inside form tags (<FORM &ldots;> &ldots; </FORM>). The entire form code, including all the examples, is ready for you to use. |
Form Elements