Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    What about phone numbers expressed with letters, e.g., 0800DIALTHIS? Commented May 9, 2011 at 9:37
  • 3
    What are you trying to prevent? The user lying? The user not wanting you to know their number? The user being too lazy to enter anything? The user doing a typo? Commented May 9, 2011 at 12:25
  • @ mouviviel : yes that also i need to think about i am taking one valdation scenario at a time so i will think about it. Commented May 10, 2011 at 5:44
  • @Benjol : This application is a commercial one so we can't risk on our coustomers i know a user will enter a correct number but what if he/She does not. Valdation are pretty important as they save application not only typos. I don't want my DB to filled with useless junk. Commented May 10, 2011 at 5:47
  • 5
    well what are you doing to validate their email addresses? You'll observe that nearly all websites do "real life" validation (i.e. sending you a mail). I think that if the phone number is that important, you'd need to do something equivalent. Commented May 10, 2011 at 7:05