php中eregi函数在程序运行后出现函数未定义的错误
$DOCUMENT_ROOT=$_SERVER['DOCUMENT_ROOT'];$customername=trim($_POST['customername']);$...
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; $customername=trim($_POST['customername']); $gender=$_POST['gender']; $arrivaltime=$_POST['arrivaltime']; $phone=trim($_POST['phone']); $email=trim($_POST['email']); $info=trim($_POST['info']); if(!eregi('^[a-zA-Z0-9_\-\.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9_\-\.]+$',$email)){ echo "这不是一个有效的邮箱,请返回上页且重试"; exit; } if(!eregi('^[0-9]$',$phone) and strlen($phone)<=4 or strlen($phone)>=15){ echo "这不是一个有效的电话号码,请返回上页重试"; exit; }
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询