php
'password'
];
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$username = $_POST['username'];
$password = $_POST['password'];
if (isset($users[$username]) && $users[$username] === $password) {
$_SESSION['username'] = $username;
echo '登录成功!';
} else {
echo '用户名或密码错误!';
}
}
?>
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-