I have a simple "Create New Profile" form on my site using CFFORM and validating all fields in the form. When I test it on my workstation (WinXP, CF7) it works great. When I upload the same page to my web server (CFMX 6.1, IIS6) the validation does not work at all. If you click the "Create New Profile" button no validation occurs and the page tries to submit to the action page. Here is the form code:
<cfform action="subscription.cfm" method="post" name="newprofileform" id="newprofileform">
<cfinput name="First"
required="yes"
type="text"
size="30"
id="First"
message="Please enter your first name">
<cfinput name="Last"
required="yes"
type="text"
size="30"
id="Last"
message="Please enter your last name">
<cfinput name="UserEmail"
type="text"
required="yes"
validate="regular_expressi
on"
pattern="[A-Za-z0-9_]+@[A-
Za-z0-9_]+
\.[A-Za-z]
+"
message="Please enter a valid email address with no spaces"
size="30"
id="Email" />
<cfinput name="PCode"
type="password"
required="yes"
size="30"
id="PCode"
message="Please enter your password">
<cfselect
name="UserGroup"
id="UserGroup"
required="yes"
message="Please select your group"
multiple="yes"
size="6">
<option value="Parent">Parent
<option value="Teacher">Teacher
<option value="Student">Student
<option value="School Admin">School Administrator
<option value="Community Member">Community Member
<option value="Other">Other
</cfselect>
<input name="Submit"
type="submit"
id="Submit button"
value="Create new profile"
title="Submit Button">
</cfform>
Anyone have any ideas?
thanks,
Ken
Start Free Trial