Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial