您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

寻求帮助关于网站后台建设:为什么验证码异常也能登陆后台

2025/4/10 3:31:35发布41次查看
寻求帮助关于网站后台建设:为什么验证码错误也能登陆后台
name=$x;
     $this->pwd=$y;
    }
function checkinput()
   {
     include(../conn/conn.php);
     $sql=mysql_query(select * from tb_admin where name='.$this->name.',$conn);
     $info=mysql_fetch_array($sql);
     if($info==false)
       {
          echo ;
          exit;
       }
      else
       {
          if($info[pwd]==$this->pwd)
   {
   if($number==$_session['code'])
      {
   header(location:index.php);}
   else 
      {
   echo ;
                   exit;}
            }
          else
           {
             echo ;
             exit;
           }
}    
   }
 }
$obj=new chkinput(trim($_post[name]),trim($_post[pwd]));
    $obj->checkinput();
?>
------解决方案--------------------
$number==$_session['code'];
断点调试输出验证码
------解决方案--------------------
如果你的$_session['code']是验证码,那$number是什么,如果是验证码为什么不用post传递过来
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product