next up previous
Next: Text Input Up: Entering Data Previous: Entering Data

The Submit Button

Every Form should have one -- eventually you will need to send the data from the form.

The type attribute ``SUBMIT'' is used to indicate a submit button.

The simplest input button is produced by:

<input type = "submit">

This creates the following button:

You can change the name of the button with the VALUE attribute. For Example

Several buttons may be included in a form and by including a name attribute the CGI script can check this with the value ( a name/value pair) to see which button was pressed. More on this in CGI script sections later.

For Example:

<form>
<input type="submit" name = "left" value = "left">
<input type="submit" name = "right" value = "right">
<input type="submit" name = "up" value = "up">
<input type="submit" name = "down" value = "down">
</form>

which gives:



Dave Marshall
9/28/2001