ColdFusion Tutorial
Adding a Reset button to the form
The Reset button will reset (blank) all the fields in the form.
The syntax for the reset button is very similar to the Submit button.
<input type="reset" value="Reset">
form1.cfm
|
< form action="form2.cfm" method="post" name="form1">First Name: <input name="first_name" type="text" size="20" maxlength="20">< br>Last Name: <input name="last_name" type="text" size="20" maxlength="20">< br>< input name="upload_person" type="submit" id="upload_person" value="Submit -->">< input type="reset" value="Reset"></ form> |
form2.cfm
|
First Name: <cfoutput>#Form.first_name#</cfoutput>< br>Last Name: <cfoutput>#Form.last_name#</cfoutput> |
ColdFusion Tutorial test
Adding a Reset button to the form
No test is available or implemented for this ColdFusion Tutorial.
No User Comments.
No User Comments, be the first one to write your comments?
