Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

validate the phone number.

Javascript coding ..

Moderators: macek, egami, gesf

validate the phone number.

Postby premecorp » Thu Nov 24, 2011 5:21 am

Hi,
I want to validate the phone number(landline or mobile) using a regular expression.
Phone number should be global (like used all over the world).
It may contain special characters(Optional) like "hypen"(-), or "Paranthesis"().
Ex: 086-104-2222
or (086)-104-2222
or 0861042222 (US)

or 9999999999 (Mobile)

or 08026693647 (India)

Can i get these done in a single expression
If anyone have any idea regarding this please help me...
premecorp
New php-forum User
New php-forum User
 
Posts: 18
Joined: Fri Nov 04, 2011 5:57 am

Re: validate the phone number.

Postby somdcomputerguy » Fri Nov 25, 2011 2:26 pm

somdcomputerguy
New php-forum User
New php-forum User
 
Posts: 14
Joined: Tue Oct 04, 2011 6:50 am
Location: West Virginia


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron