how to use cfdiv
cfdiv.cfm
<!DOCTYPE html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdiv tag example: how to use cfdiv tag in coldfusion</title>
</head>
<body>
<h2 style="color:DodgerBlue">ColdFusion cfdiv tag example</h2>
<cfform name="HelloForm">
Your Name:
<cfinput type="text" name="UserName">
</cfform>
<cfdiv id="HelloDiv" bind="url:hello.cfm?Name={UserName}">
</body>
</html>
hello.cfm
<cfif IsDefined("url.Name")>
<cfif url.Name eq "">
Input your name!
<cfelse>
<cfoutput><h2 style="color:Crimson">Hi <i>#url.Name#</i>!</h2></cfoutput>
</cfif>
</cfif>