分析错误:语法错误,意外';退出';(T_EXIT)在C:\xampp\htdocs\Chat\Chat\includes\signup.inc.php的第12行
试图创建一个注册页面,但当有人在错误中注册时,为什么?行:12分析错误:语法错误,意外';退出';(T_EXIT)在C:\xampp\htdocs\Chat\Chat\includes\signup.inc.php的第12行,php,Php,试图创建一个注册页面,但当有人在错误中注册时,为什么?行:12 if(空($username)| |空($password)| |空($passwordrepeat)){ 标题(“位置:../signup.php?错误=emptyfeilds&“$username”) exit();//您可以这样尝试- // You should add ';' after header function if (empty($username) || empty($password) || empty($p
if(空($username)| |空($password)| |空($passwordrepeat)){
标题(“位置:../signup.php?错误=emptyfeilds&“$username”)
exit();//您可以这样尝试-
// You should add ';' after header function
if (empty($username) || empty($password) || empty($passwordrepeat)) {
header("Location: ../signup.php?error=emptyfeilds&".$username);
exit(); // <-- Here!
}
//应该在头函数之后添加“;”
if(空($username)| |空($password)| |空($passwordrepeat)){
标题(“位置:../signup.php?错误=emptyfeilds&“$username”);
exit();//请在头后添加分号,否则它将在下一行代码中抛出错误,如下所示
header("Location: ../signup.php?error=emptyfeilds&".$username);
您需要在标题
行标题之后添加分号
(“位置:../signup.php?error=emptyfeilds&“$username)
嘿,它不起作用了,你能把我添加到discord上吗?这样我就可以筛选了?Gris#2327,它修复了第12行,但第13行是错误的12但第13行是错误的实际上,你忘了关闭你的if station花括号,我也关闭了代码中的花括号,检查一下
header("Location: ../signup.php?error=emptyfeilds&".$username);