(For more information on how to create form validation using the Front Page form feature, see About creating forms in Front Page 2003.) However, if the form validation provided in Front Page does not suit your needs or the site on which you are working is hosted on a server that does not have Front Page Server Extensions from Microsoft installed, you may need to create custom form validation.Note Front Page Server Extensions are a set of programs that provide access to special Front Page features, such as database processing, form processing, hit counters, and other built-in Front Page components that require server-side processing. these are accepted: 5555555555 555-555-5555 (555)555-5555 1(555)555-5555 1 5 1 555-555-5555 1 (555) 555-5555 these are not accepted: 555-5555 - to accept this use: ^ ? As a PRO member, you can drag-and-drop upload files here to use as resources. For example, you may want to ensure that someone inserts a valid e-mail address into a text box, or perhaps you want to ensure that someone fills in certain fields.Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.
At the very least it should be var m = value.match(/\d/g); return m && m.length === 10This led me in the right direction. Unfortunately this expression will also match (1234567890 and 123)4567890. If you want to match at word boundaries, just change the ^ and $ to \b I welcome any suggestions, corrections, or criticisms of this solution.
Google's libphonenumber is very helpful for validation and formatting of phone numbers all over the world.
It is easier, less cryptic, and more robust than using a Reg Ex, and it comes in Java Script, Ruby, Python, C#, PHP, and Objective-C flavors.
Also it should not allow to enter any space, special charcter, as well as charcters. You can find an example in here S...-Java Script/6/ Hope this helps Mujahid Khaleel Web designing, development, E-commerce applications. Still iam unable to achive for writing the code for Phone No Validation.
Here user can enter either phone number or mobile number. Here user can enter either 10 digit number(which starts from 9) OR can enter 8 digit number(starts with 2).