FlashForm.cfm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ColdFusion cfform tag example: how to use flash format form</title>
</head>
<body>
<h2 style="color:DodgerBlue">cfform example: Flash Format Form</h2>
<cfif IsDefined("Form.Submit")>
<cfoutput>
Hi <b>#Form.UserName#!</b> You came from <b>#Form.City#</b>
</cfoutput>
</cfif>
<br /><br />
<cfform
name="FlashForm"
method="post"
action=""
format="flash"
width="350"
height="250"
skin="halogreen"
>
<cfformgroup type="panel" label="User Details">
<cfinput type="text" name="UserName" label="User Name" required="yes" message="Name Required">
<cfinput type="text" name="City" label="City" required="yes" message="City Required">
<cfinput type="submit" name="Submit" value="Submit">
</cfformgroup>
</cfform>
</body>
</html>





No comments:
Post a Comment