上传验证码

//在登陆后台页面

$_POST["code"];

if ($_POST["code"]==$_SESSION["authcode"]) {

    

}else{
  echo "<script>alert('验证码错误');location.href='login1.php';</script>";
 }

原文地址:https://www.cnblogs.com/index0629/p/8107870.html