|
|
<html> ... <form method="post" action="ListTitles.php"> Book title word: <input type="text" name="title" value="Web" size="32"> <input type="submit" name="act" value="List the titles"> <input type="submit" name="act" value="Help"> <input type="reset" value="Reset"> </form> ... </html> |
|
|
|
| |
---|---|
FORM
is used to select different kinds of user input. A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.) in a form.
type="text"
: It specifies a single line text entry field within the form that contains it.
type="submit"
: When the user clicks on the button, the form is submitted.
type="reset"
: When the user clicks on the button, all the fields in the form are reset to their initial values.
Francesca hit it out of the park (performed extremely well) with her speech today. It was fabulous. |