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.