$tel = trim($_POST['tel']);
if (preg_match("/^1[34578][0-9]{9}$/", $tel) == 0) {
die("<script>alert('手机号格式错误!');history.go(-1);</script>");
}
if (empty($adminname)) {
die("<script>alert('用户名不能为空!请重新填写');history.back();</script>");
};
if (strlen($password)<6) {
die("<script>alert('密码不能为空且不能少于6位!');history.go(-1);</script>");
}