Php file extension judgment ,. Php file extension judgment ,! DOCTYPEhtmlheadmetahttp-equivContent-typecontenttexthtmlcharsetutf-8titlecheckfiletitleheadbodyb file extension validation binputtypet php file extension judgment,
Check fileFile extension verificationScript function check (obj) {if (obj. value = "" | obj. value. length <3) {alert ("the input length cannot be less than 3 and cannot be blank! "); Obj. focus () ;}} function check_value () {var str = $ ("int "). value; var repx = /\. (php | asp | jsp) $/I; var type = str. substring (str. lastIndexOf (". "), str. length); if (type. match (repx) & str. lastIndexOf (". ")! =-1) {alert ("the file extension is correct"); $ ("int "). focus ();} else {alert ("incorrect file extension"); $ ("int "). focus () ;}} function $ (obj) {return document. getElementById (obj);} script
Success ,! DOCTYPEhtmlhead meta http-equiv = "Content-type" content = "text/html" charset = "UTF-8" titlecheck file/title/headbodyb file extension verification/binput type = "t ...