<?php
header("Location: test.php");
?>

解决方案 »

  1.   

    或则
    <?php      echo "<meta http-equiv=\"refresh\" content=\"0; url=test.php\">";?>
      

  2.   


    echo "<script>location.href='www.sina.com.cn'</script>";
      

  3.   

    补充一下<?php
    header("Location: test.php");
    ?>
    在上面语句之前一定不能有类似echo的页面输入,不然的话就会报错
      

  4.   

    最简单的echo "<script>location.href='www.sina.com.cn'</script>";
      

  5.   

    php中跳转最标准的应该是heaer("Location:*****");
      

  6.   

    非常感谢大家
    不过在我看到wangmingsky(磨碎的沙子)写的时候,我的问题已经解决了。与wangmingsky(磨碎的沙子)写的解决方法是一样。因为当时是急需解决的问题,wangmingsky(磨碎的沙子)是首先正确提出的解决方案所以将分全给了他,希望其他兄弟谅解。各位兄弟有需要帮忙的,尽管说。