Link to home
Create AccountLog in
Avatar of Mamea
Mamea

asked on

Validation of Phone Numbers

Hi,

Is there any way to validate for phone numbers (US) as well as international phone numbers in ColdFusion? Thanks
ASKER CERTIFIED SOLUTION
Avatar of Russell2566
Russell2566
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of _agx_
If you need to handle international phone numbers as well, I would suggest reviewing the standards first.  
http://en.wikipedia.org/wiki/E.164
http://www.itu.int/net/home/index.aspx

Once you understand that its just a matter of structuring you db table to store the values properly and designing a regular expression to match.
Avatar of Mamea
Mamea

ASKER

Hi,

Yes, I don't like to do cfform and I also do all of my own validation. I was wondering if there was a custom tag or some other method in CF to validate phone numbers.

Thanks
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.