问题不清楚查看路径是否正确,页面是否存在........

解决方案 »

  1.   

    后台登陆 
         无需验证码 只有用户名和密码 
             此类文件(ht.class.php) 
             #后台用户的登陆
    public function checkLogin(){
    $sql="select * from houtai where ht_Name='".$this->ht_Name."' && ht_Pwd='".$this->ht_Pwd."'";
    $result=$this->dbconn->conn($sql);
    if($result["rsNum"]=="1")
    {
    session_register('MINGZI');
    $_SESSION['MINGZI']=$this->ht_Name;
    $this->dbConn->POB("欢迎进入后台管理系统!","index.php");
    }
    else
    {
    $this->dbConn->POB("用户名或密码不正确!","admin.php");
    }
    }
      此post页面
        #后台用户登陆
       if($action=="checkLogin")
       {
    $ht->ht_Name=$_POST["htName"];
    $ht->ht_Pwd=sha1($_POST["pwd"]);
        $ht->checkLogin();
       }
      此前台登陆页面
      <form id="form1" name="form1" enctype="multipart/form-data" method="post" 
    action="post.php?  action=checkLogin" onSubmit="return denglu()">错那儿了?