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>

Advertisement

Beauty.com

No User Comments.

No User Comments, be the first one to write your comments?

ApplayIT is owned by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.