Read about mobile number for sms verification, The latest news, videos, and discussion topics about mobile number for sms verification from alibabacloud.com
function Checktel () {/*Verify the phone number verification rule: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-bit or 8-digit number between the area code and the number can be no connector,
This article examples need to verify the content: Chinese name, mobile phone number, ID card and address, verification methods to share for everyone to reference, the specific content as follows
HTML (Form):
jquery Validation:
The Test () method determines whether the string matches a regular expression content, and returns a Boolean value (True/
Android automatically reads the SMS verification code and android SMS Verification Code
The system automatically obtains the SMS verification code of the mobile phone. The principle is
function Funcphone ($STR)//telephone number regular expression trial {return (Preg_match ("/^ ((D{3})) | ( d{3}-))? ((0d{2,3}) |0d{2,3}-)? [1-9]d{6,8}$/", $str))? True:false;} Use the method if (Funcphone (' 0731-88888888 ')) {echo ' correct phone number ';} else{Echo ' Sorry, the phone number you entered is incorrect ';} function Funcmtel ($STR)//Cell phone
function Checknum () {var Mobilereg =/^ (13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9]) \d{8}$/i;var phonereg =/^0\d{2,3}-?\d{7,8}$/;var num = $ (' #txtTel '). Val ();if (!mobilereg.test (num) !phonereg.test (num)) {Alert ("The phone number is incorrect, please re-enter!") ");} }It is best to match the onblur () label, and be careful to test the number with the. Test () method instead of ==!JS
Everyone should have this common sense, China's mobile phone number is the number "1", and then use the "0~9" 10 digits of the 11-digit combination, then our validation rules must be based on this idea to write.Based on the above simple idea, we can write down the following verification code, the code is as follows:
Copy the code as follows:
1. php mobile phone number verification (supporting local query and encoding UTF8) _ PHP Tutorial
Description: php verifies the mobile phone number (which can be found by region and encoded as UTF8 ). The code is as follows :? Php //
What if the phone number changes?
We go to the official website, then we click Login in the interface after entering the personal center and then we click on "My 12306"-Personal information-cell phone verification-Enter a new phone number-Enter the login password, the effect shown in the following figure
Use the new cell phone
Copy the code code as follows:
1. PHP Verification Mobile Phone number (support attribution to query and code for UTF8) _php tutorial
Introduction: PHP Verification mobile phone number (support attribution to query and encoded as
code use less, because now is a person has a mobile phone number, but not necessarily have a mailbox account.Use the mailbox to send the verification code, do not need to like SMS verification code to call the SMS Service API to
A third-party vulnerability allows you to view fund changes (including balance, salary, fund details, and transfer verification code) with only one mobile phone number)
The affected content includes but is not limited:Bank card balance, salary record, loan information, fund details, consumption record, transfer verification
Copy Code code as follows:
Mobile phone number Verification
function Checkmobilevalidity ($mobilephone) {
$exp = "/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|18[012356789]{1}[0-9]{8}$|14[57]{1}[0-9]$/";
if (Preg_match ($exp, $mobilephone)) {
return true;
}else{
return false;
}
}
Mobile phone
Preface
Registration often need to use SMS Verification code, this article records the idea and concrete implementation.
SMS verification platform using cloud tablets, SMS verification code generation using thinkphp.
Ideas
1, the
General users like to use mobile phone number as a user name to register the app account, this is usually through the verification code of mobile phone verification, the following we study a very practical method, through the monitoring of
This article mainly introduces the php mobile phone number verification method. the mobile phone number verification usually uses php regular expression to express the test evidence. the mobil
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.