Check password fields in Flash Forms

Here is a quick way to check password fields to see if they match in Flash Forms:

<cfform format="Flash" onSubmit="if( p1.text != p2.text ){ alert('Passwords Do Not Match!'); return false;}">
   <cfinput type="password" name="p1">
   <cfinput type="password" name="p2">
   <cfinput type="Submit" name="btn" value="save">
</cfform>

No comments yet.

(will not be published)
Leave this field empty: