Use JS Regular expression to verify the phone number, email address, zip code. Need friends can come to the reference, I hope to help you.
Cell phone number verification (13 opening and 158,159 beginning, total 11 bits) code as follows: Var re; var Ss=document.getelementbyid (' TextBox3 '). Value; Re=/^ (13[0-9]{9}) | (15[89][0-9]{8}) $/if (Re.test (ss)) { document.getelementbyid (' Label3 '). innertext= ""; / Assign a value to a label using the innertext } else { document.getelementbyid (' label3 '). innertext= "Please enter the correct mobile phone number!" "; document.getelementbyid (' ImageButton1 '). Disabled=true; Disable button with disabled} email address verification (contains @ and.) code as follows: VAR re; var Ss=document.getelementbyid (TEXTBOXID). value; re=/w@w*.w/ if (re.test (ss)) document.getelementbyid (' Label4 '). innertext= ""; else { document.getelementbyid (' Label4 '). innertext= "Please enter the correct email address!" "; document.getelementbyid (' ImageButton1 '). Disabled=true; &NBSP} ZIP/Postal Code verification (beginning cannot be 0, total 6 bits) code is as follows: Var Ss=document.getelementbyid (' TextBox4 '). Value; var re=/^[1-9][0-9]{5}$/if (re.test (ss)) document.getElementById (' Label5 '). innertext= ""; else { Document.getelemeNtbyid (' Label5 '). Innertext= postal Code is not in the correct format! "; } var r=/^13[012345789]{9}/11 digits beginning with 13, after 9 digits 6