php 写的html script标签内的alert没反应
发布网友
发布时间:2022-11-25 06:28
我来回答
共1个回答
热心网友
时间:2023-10-08 23:02
require_once ('include.php');
$email=$_POST['email'];
$password=md5($_POST['password']);
$verify=$_POST['verify'];
$imgVerify=$_SESSION['verify'];
if ($verify==$imgVerify) {
$sql="select * from tuuup_user where email='{$email}' and password='{$password}'";
$res=checkUser($sql);
print_r($res);
}else{
echo "<script>alert('验证码错误');</script>"; //错误在这里,没有结束标签
echo "<script>window.location='Signin.php';</script>"; //这里也没有结束标签
}