Time:
Scotland: Fri, 11:58 pm
Rhode Island: Fri, 6:58 pm
Florida: Fri, 6:58 pm
New Mexico: Fri, 4:58 pm
California: Fri, 3:58 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : Cold Fusion - cfinput validate tag


nchrisman
11-08-2004, 09:04 PM
I have created a form using Cold Fusion where the user needs to input their ID, which is their SSN. The users that will use this form are students and potentially could have foreign SSN's (i.e. FOR123456). I tried to use the following code (which works perfectly for the typical SSN, i.e. 123-45-6789):

<cfinput name="studentid" required="yes" maxlength="11" type="text" message="A valid Student ID number must be entered (e.g. 111-22-3333)." validate="social_security_number">

When trying to input FOR-12-3456, I receive "A valid Student ID number must be entered (e.g. 111-22-3333)."

Does anyone have any idea how I can validate this information?

THANKS!!!!

mmi
11-09-2004, 08:17 AM
Hey nchrisman and welcome to the city that regularly and securely supports social expression. :)

I'm not a scripter by any means, so I can only suggest an approach to this question. Since the JavaScript generated by ColdFusion isn't getting the job done, I'm thinking you either need to adapt it to yer needs or write a regular expression that takes care of "foreign" numbers.

This doc (http://developer.irt.org/script/3003.htm) might help you.

This guy (http://geekswithblogs.net/sbellware/archive/2004/10/16/12698.aspx) seems to have doubts about the whole process.

Here's someone (http://www.mykejb.com/ddaily2.asp#A131) with a similar concern.

nchrisman
11-09-2004, 03:04 PM
Thanks for your input....I will try it out. :)