|
The Submit button and the Action Attribute
The action attribute of a form identifies the file where the content has to be sent. This action takes place when the user clicks on the submit button. The file which has to be submitted is sent to another file identified by the attribute.
<form name=“input” action=“html_form_action.asp” Method=“get”> Email: <input type=“text” name=“email adress”> <input type=“submit” value=“submit”> </form>
It would appear in the browser as:
Email address:
By entering your email address in the above text field and then clicking the submit button you will send the data to the page “html_form_action.asp”.
Tag Summary:
Tag
|
Used for
|
<form>
|
Used for defining a form for user input
|
<label>
|
Used for defining a controlling label
|
<textarea>
|
Used for defining a text-area (a multi-line text input control)
|
<legend>
|
Used for defining a caption for a fieldset
|
<select>
|
Used for defining a selectable list (drop-down box)
|
<input>
|
Used for defining an input field
|
<fieldset>
|
Used for defining a fieldset
|
<optgroup>
|
Used for defining an option group
|
<button>
|
Used for defining a push button
|
<option>
|
Defines an option in the drop down box
|
|