Learn about twilio phone number verification api, we have the largest and most updated twilio phone number verification api information on alibabacloud.com
1, Taobao
API Address: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel= mobile phone number
Parameters:
Tel: mobile phone number
Back: JSON
2, Pat
API Address: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile
recently in the National Industry Classification information web site, need to use the mobile phone number ownership display function, so the shuttle in the major authoritative sites between the API to steal the interface address. Share it out, and you can use it to take it, uh, Free mobile phone
JS Regular expression verification account, mobile phone number, phone, and e-mailEffect Experience: http://keleyi.com/keleyi/phtml/jstexiao/15.htmVerify that the account is valid for validation rules: Letters, numbers, underscores, letters beginning with 4-16 digits.function CheckUser (str) {varRe=/^[a-za-z]\w{3, the}
JS Regular expression verification account, mobile phone number, phone, and e-mailEffect Experience: http://keleyi.com/keleyi/phtml/jstexiao/15.htmVerify that your account is legitimateValidation rules: Letters, numbers, underscores, letters beginning with 4-16 digits.function CheckUser (str) { var re =/^[a-za-z]\w{
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:
Nonsense not much to say directly on the code
HTML code:
JS code:
The above is a small set of JS to introduce the realization of form verification function (verify the existence of mobile phone number, verification code countdown), I hope to help you, if you have any questions please give me a
1. Account numberRules: Letters, numbers, underscores, letters beginning with 4-16 digits.Expression:/^[a-za-z]\w{3,15}$/;2. Mobile phone numberRule: 11 digits, starting with 1Expression:/^1\d{10}$/3. Phone numberRules: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-or 8-digit number
I would like to randomly form a mobile phone verification code, and then submit to write to the database, and then read out the comparison, so to look at the table, so think of another method, is to re-assemble the phone through the input of a verification code, this verification
086-area code-number-Ext^086-[1-9][0-9]{1,4}-[1-9][0-9]{4,7}-[0-9]{3,4}$
2G's cell phone number is almost all 13.
The code is as follows
Copy Code
$mobilephone =trim ($_post["Smmobilephone"]);Regular verification of mobile phone numberif (Preg_m
This API support 1, can enter 11-digit mobile phone number of the location of the attribution, such as: 13858861234, 2, can be entered into the 7-bit paragraph query attribution such as: 1335586, 3, support number 13, 14, 15, 17, 18, the need for small partners can refer to.
The A
,
Cboxname: check box name,
Boolean: true (selected) or false (not selected ),
Note: When copying data to other locations for use, use the $ n (elementsname) method together. You can modify the method body as needed.
*/
Function setcboxwholestate (cboxname, Boolean ){
VaR cboxobj = $ n (cboxname );
For (VAR I = 0; I Cboxobj [I]. Checked = Boolean;
}
Cboxobj = NULL;
}
/*
Setcboxreverse (cboxname) Reverse Selection Check box
Return Value: no return value.
Function: select the status of the check b
Recent project new features, need to mobile phone number, name, ID card number and other information to verify, the best way is through regular expression to verify, on-line check some information, wrote these tools methods.1. Verify the phone numberRule: The first digit can only be 1, the second digit is 3-8, 3-11 bit
function Checkok (){$ (". Text_red"). Hide ();i = 0;if (isNaN ("#MPNation"). Val ()){$ ("#errorMsg_1"). Show ();i++;}if ($ ("#RefreshResume_Form"). Find ("#isenglish"). Val ()!= 1){if ($ ("#Mobile"). Val ()!= "mobile number" isNaN ($ ("#Mobile"). Val ()){$ ("#errorMsg_1"). Show ();i++;}if (isNaN ("#HPNation"). Val ()){$ ("#errorMsg_2"). Show ();i++;}if ($ ("#HPCity"). Val ()!= "area code" isNaN ($ ("#HPCity"). Val ()){$ ("#errorMsg_2"). Show ();i++;
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
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.