PHP Form Reset

Description

A reset button resets all form fields back to their initial values. The value attribute contains the button label text.


<label for="resetButton">A reset button</label> 
<input type="reset" name="resetButton" id="resetButton" value="Reset Form" /> 

Next chapter...

What you will learn in the next chapter:

  1. What is the form push button
Home » PHP Tutorial » PHP Form
PHP HTML Forms
PHP GET and POST
PHP Form Elements
PHP Form TextField
PHP Form Password Field
PHP Form Textarea
PHP Form CheckBox
PHP Form Select
PHP Form RadioButton
PHP Form Submit
PHP Form Reset
PHP Form Push Button
PHP Form Image
PHP Form Hidden Field
PHP Split Form Across Pages
PHP Form Validation
PHP Form File Upload
PHP Form Demo
PHP Form Empty Fields
PHP Form Multi-Value Fields
PHP Redirect after a Form Submission