Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
分析错误:语法错误,意外';退出';(T_EXIT)在C:\xampp\htdocs\Chat\Chat\includes\signup.inc.php的第12行_Php - Fatal编程技术网

分析错误:语法错误,意外';退出';(T_EXIT)在C:\xampp\htdocs\Chat\Chat\includes\signup.inc.php的第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

试图创建一个注册页面,但当有人在错误中注册时,为什么?行:12

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);