header("location:index.php");
我也是这样用的,试过了很多次,还是不行。
后来才发现是我的文件用了中文名,导致PHP解释失败。
仍然非常感谢!!

解决方案 »

  1.   

    方法一: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();
    ?>
      

  2.   

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