Monthly Archives: 2016年五月

PHP XSS过滤函数

← Continue Reading
<?php function RemoveXSS($val) { return $val;   //,号会过滤掉 // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed // this prevents some character re-spacing such as <java...

身份证验证 javascript函数

← Continue Reading
身份证验证 javascript函数 <?PHP function checkCardId(socialNo) { var message = ''; if(socialNo == "") { message = "身份证号码不能为空!"; return message; } if (socialNo.length != 15 && socialNo.length != 18...