In the past, I tried to verify my ID card. we often used regular expressions to determine if the user entered a full number of 15 or 18 digits and then determined whether the ID card was valid. this method is only the most basic method, the ID
Php does not need regular expressions to verify true and false ID cards. Let's look at the code directly. a simple PHP class copies the code as follows :? Php $ IDCardnewIDCard (); var_dump ($ IDCard: isCard ($ _ GET [card]); you can directly view the code for the *** ID card processing class ** classIDC, A simple PHP
The following code verifies the validity of an ID card number based on the ID card number encoding rules using JS.The IdCard-Validate.js code is as follows:Copy codeThe Code is as follows:/*** ID card 15-bit encoding rule: dddddd
Turn http://oa.zol.com.cn/496/4969894_all.htmlDo not ask to manually complete the ID double-sided copyIn fact, about the "double-sided Copy ID card" These things, some manufacturers brain hole open, in some of the machine and commercial-grade copier added "id copy" function, but after all, has the identity
JS implements the last digit when the ID card number is 15 to 18 charactersAlgorithm
According to the provisions on the national identity number in the National Standard GB 11643-1999 of the People's Republic of China, the national identity number is a characteristic combination code consisting of a 17-digit digital ontology code and a digital verification code.
The order is from left to right: six-digi
Verify the validity of the ID card number based on the encoding rules. The specific implementation is as follows. You can refer to the following code to verify the validity of the ID card number based on the ID card number encodin
Verify whether the ID card number complies with the second generation ID card specification based on the provided ID card number information. The region code can be downloaded online. The database is DB2, but the general
IDValidate. js
/*** ID card 15-bit encoding rule: dddddd yymmdd xx p* Dddddd: Location Code* Yymmdd: Date of birth* Xx: sequence class encoding, which cannot be determined* P: gender. The odd number is male and the even number is female.* * ID card 18-bit encoding rule: dddddd yyyymmdd xxx y* Dddddd: Location Code* Yyy
Mr. Kim. Wu
No.: mrkimwu
QQ: 1315371422
In the previous article "Raspberry Pi's Application in ID card verification", I briefly introduced and implemented the function of Raspberry Pi's reading with ID card. However, reading the local machine is far from enough.
The retrieved ID
Proof of report
What if I lose my ID card? Many friends will immediately say, a replacement. In fact, this idea is wrong. After the loss of identity cards should be reported at the first time, if necessary, the telephone recordings should be retained to prove that the identity card has been lost. And once your identity card
IDValidate. js/*** ID card 15-bit encoding rule: ddddddddyymmddxxp * dddddd: Location Code * yymmdd: Date of birth * xx: sequence class code, uncertain * p: Gender, odd number is male, the even number is female * lt; p/ gt; * ID card 18-bit encoding rule: dddddd... syntaxHighli
IDValidate. js
/***
ID card number verification
Http://blog.donews.com/gxgx/category/39640.aspx? Pagenumber = 1
/*-------------------------------------------------------------------------------* Function name: Boolean gf_check_identity (string as_identity)* Function: verify the correctness of the ID card number input (you can determine t
The ID card of Mainland China is 18 digits, and the old ID card is 15 digits.The principle of how ID card 18th is calculated is as follows: according to the provisions on citizenship numbers in the National Standard of the People'
According to the ID number coding rules to verify its validity, the specific implementation of the following, you can refer to the following The following is based on the ID card number coding rules, use JS to validate the code nbsp; nbsp; Idcard-validate.js code as follows:nbsp; nbsp; code:/**nbsp; * ID
I recently read an article about how to obtain necessary information through the ID card number. I think that when I was using the MS system, I usually need to enter the ID card number, gender, and date of birth, these inputs can be obtained only through the ID
This article mainly introduces the javascript verification ID card number, which is very detailed. For more information, see ID card numbers, we need to verify your ID card. Otherwise, someone else will pass the verification by en
The following code verifies the validity of an ID card number based on the ID card number encoding rules using JS.
The IdCard-Validate.js code is as follows:Copy codeThe Code is as follows:/*** ID card 15-bit encoding rule: dddddd
The progress in the previous two days seems to be a little slow. Today, we have accelerated a little bit, so we will not detail each step.= Extraction of Area Information
After gender and birthday, the last information block will only list the tests as follows.
(Copyright: 2012-2013 Yu qin'an)= "Validity
This is a big problem. previously, I temporarily removed the verification from different places. the original author of the Code also talked about his views on verification. he is right. This c
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.