How to preserve data in a Form in ColdFusion

cffrom - preserve data in coldfusion form


<!DOCTYPE html>

<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cffrom preservedata property: How to preserve data in coldfusion form</title>

<h2 style="color:DodgerBlue; font-style:italic">cfform example: preservedata property</h2>
<hr width="350" align="left" color="PaleVioletRed" />
<br />

<cfform name="testForm" method="post" preservedata="yes">
 <cfinput name="Name" type="text">
    <br />
    <cfinput name="Address" type="text">
    <br />
    <cfinput name="Submit" type="submit" value="Submit Data">

<h4 style="color:#F30;">
 <cfif IsDefined("Form.Submit")>
            Your name: #Form.Name#
            <br />
            Address: #Form.Address#

More ColdFusion examples