header( "location : http://sssss.ss.ss ");手册上有的,去校对一下好了。

解决方案 »

  1.   

    <?php
       include("..\include\func.php");
       $userid=ChkPwd($uname,$upass,$utype);
       switch($userid){
          case  1://管理员通过验证
                  Header("Location: adm_choice_test.htm");
                  exit;
                  break;      
          case  2://教师通过验证
                  Header("Location: teach.htm");
                  exit;
                  break;
          case  -1://用户不存在
                  echo "<script language=\"JavaScript\">
                  alert(\"对不起,用户不存在或密度不正确,请重新登录。\");
                  history.back();
                  </script>";
                  exit;
                  break;
          
       }
    ?>我的认证程序
      

  2.   

    if (条件)
    {//跳转到A}
    elseif (条件)
    {//跳转到B}
    else
    {exit;}跳转可以用META
    <meta http-equiv='refresh' content='0';url='a.html'>
      

  3.   

    header( "location : xxxx.xxx");