我的 login.PHP 页面返回空白。我试过改变我能想到的一切。我知道我可能只是缺少一些简单的东西。它应该返回错误。这是 login.PHP 的代码(我还打开了一个单独的错误报告器来查看我得到了什么错误并且我得到了“array()”
include 'core/init.php';
if (empty($_post) === false){
$username = $_post['username'];
$password = $_post['password'];
if (empty($username)=== true || empty($password) === true) {
$errors[] = 'You need to enter a username and password.';
}
else if (user_exists($username) ===false) {
$errors[] = 'We can\'t find that username. Have you registered?';
}
else if (user_active($username) ===false){
$errors[] = 'You haven\'t activate your account yet.';
}
}
print_r($errors);
ini_set('display_errors',1);
error_reporting(E_ALL);
提前谢谢!