This form uses the coreRule feature.
<cfmodule template="#coreform#" formname="form1" debug="N" maketable="Y">
<cfmodule template="#corefield#" format="password" required="yes" fieldname="password1" minlength="8" caption="New Password:" />
<cfmodule template="#corefield#" format="password" required="yes" fieldname="password2" minlength="8" caption="Retype Password:" />
<cfmodule template="#corefield#" format="submit" fieldname="Save" Value="Save" />
<cfmodule template="#corerule#" rule="password1 neq password2" caption="Both Passwords have to be the Same" /> </cfmodule>
<cfif isdefined('form.coreformaction') and request.isformvalid eq "OK"> <h1 align="center" style="background-color:#FFCC66">Yes</h1> <cfdump var="#form#"> </cfif>