javascript:document.location.href="b.php"

解决方案 »

  1.   

    echo "<script Language=\"JavaScript\">window.location='http:\\php2000.51.net'</script>"; 
      

  2.   

    方法一:header("Location:  index.php");    
     
    方法二:echo  "<script>window.location  =\"$PHP_SELF\";</script>";    
     
    方法三:echo  "<META  HTTP-EQUIV=\"Refresh\"  CONTENT=\"0;  URL=index.php\">";    
     
    方法四:<?php  
    ob_start();  
    ?>  
    html代码  
    <?  
    ob_clean();  
    include("next.php");  
    ob_end_flush();  
    ?>
      

  3.   

    方法一:header("Location:  index.php");    
     
    方法二:echo  "<script>window.location  =\"$PHP_SELF\";</script>";    
     
    方法三:echo  "<META  HTTP-EQUIV=\"Refresh\"  CONTENT=\"0;  URL=index.php\">";