<cffunction
name="ProcessForm"
access="public"
returntype="void"
output="false"
hint="I am a method used to mock the processing of form data.">
<cfdump var="#ARGUMENTS#" />
<cfabort />
<cfreturn />
</cffunction>
<cfparam name="FORM.from" type="string" default="" />
<cfparam name="FORM.to" type="string" default="" />
<cfparam name="FORM.submitted" type="boolean" default="false" />
<cfif FORM.submitted>
<cfset ProcessForm( FORM ) />
</cfif>
<cfoutput>
<cfcontent type="text/html" reset="true" />
<!DOCTYPE html PUBLIC "- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Add Crush</title>
</head>
<body>
<h1>
Add Crush
</h1>
<p>
Let us know who likes who!
</p>
<form action="#CGI.script_name#" method="post">
<input
type="hidden"
name="submitted"
value="true"
/>
<p>
<input
type="text"
name="from"
value="#FORM.from#"
/>
<em>likes</em>
<input
type="text"
name="to"
value="#FORM.to#"
/>
<input type="submit" value="Submit" />
</p>
</form>
</body>
</html>
</cfoutput>