<?php
session_start();//开启会话
@$username=$_REQUEST['username'];//用户
@$password=$_REQUEST['password'];//密码
@$captcha=$_REQUEST['captcha'];//验证码
$_SESSION['username']=$username;//用户
$_SESSION['password']=$password;//密码
if (@$_SESSION['VerifyCode']!==$captcha){
header("Location: index.php?enter=3");
exit();
}
if($username!=="admin"){
header("Location: index.php?enter=1");
exit();
}
if($password!=="admin88"){
header("Location: index.php?enter=2");
exit();
}
echo "登入成功";
//header("location: index.php?user=1");
?>
<a href="index.php" target="_self" onClick="logout();">安全退出</a>
登入测试
最新推荐文章于 2022-04-12 20:22:36 发布