Php code for validating phone number

Posted by / 21-Jul-2016 05:11

Php code for validating phone number

If they change their validated phone number, it would be the best practice to do a complete verification on the new number.This would be the only way to ensure that the new number is a good number.But when i insert number less or more than 10 it does not shows me error and else part is executed. preg_match("/^[0-9]$/",$_POST["supplier_phone"]))else And, phone numbers require some individual properties, I don't know what does your country require, you should develop this regex code. Anyways Mete ur solution works only when given number is more than 10 digit & not working for the number less than 10 digits. $data_value) /** * @var Array Validation Result */ $respond_result = array(); /** * check is Data not Empty and fileds is correct and make Validation process on it */ if (!This is the time in history where almost everyone has a phone.My children even had phones starting when they where young, mainly for safety reasons.

when I can't just enter 'Home', I have to try my best to remember what the heck my number is.

You may be asking at this point, why their phone number?

Can't I just use their e-mail address like most everyone else does?

Sure you can, however if you have to be more certain of a persons identity, malicious users are more likely to have disposable e-mail accounts than disposable phone numbers. So, we have nicely asked our new user to supply their phone number for verification and whether they can receive text messages.

They have entered their answers and submitted the form to our script for processing.

php code for validating phone number-69php code for validating phone number-41php code for validating phone number-60

One thought on “php code for validating phone number”

  1. "I met her, we became friends, I was there for her and her kids while she was going through a rough time. I have nothing bad to say." He adds, "I do want to clear up one rumor, she never broke my heart. Handcuffs and all that kind of stuff."Brandi asks who he is dating now.says nobody.