0

I'm using cform to capture internet leads on my website. I need a code so that people have to provide full 10 digit phone number or else it wont let them submit the request. Thank you.

  • 1
    http://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation – indiv Mar 19 '12 at 05:09

1 Answers1

0

Just get the length of what the user provides. check if they are all numbers, and if they are, assume that it is a number.

Prajoth
  • 900
  • 3
  • 12
  • 26