View Single Post
Old 01-22-2013, 05:47 PM   PM User | #8
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,037
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by xelawho View Post
ha, ha. I wish I shared your confidence. Unfortunately, the formats range wildly, depending on which country the user is in - an Argentine cell phone could be:
XX-XXXXXX or XX-XXX-XXXX or XX-XXXX-XXXX

while a Vanuatu landline could be XX-XXX

but you don't want an Argentine cell phone number to validate according to Vanuatu landline rules just because the user forgot a few digits, if you follow my thinking.

Anyway. It's sorted now, but thanks for your input.
Surely it is up to the user to enter his telephone number correctly? Nothing will prevent digit transpositions etc. Likewise his email address. And indeed his name.

In any case I never reveal my telepone number which is ex-directory. If a number is required in a form I just invent one such as 0207 270 3000 (which is David Cameron 10 Downing Street). Then he can deal with all the calls about ***** enlargement.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote