Michael Robinson
asked on
Can anyone help me write a Reg Exp for CFINPUT Validation to prevent special char
Hi
I have a Cold Fusion form using <CFinput> and I need to validate that the field is only:
letters - upper and lower case are OK
numbers are OK
hyphens are OK
but no special characters like / \.,?! spaces etc
This field will become the name of a file.
Thx
Mike
I have a Cold Fusion form using <CFinput> and I need to validate that the field is only:
letters - upper and lower case are OK
numbers are OK
hyphens are OK
but no special characters like / \.,?! spaces etc
This field will become the name of a file.
Thx
Mike
<cfinput type="text" name="myfilename" message=" " pattern=" " validateat="onSubmit" validate="regular_expression" required="yes">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent. That worked perfectly. Thank you very much.
I _am_ about to run out the door (hence the bad spelling ;-)