<?php
header("location:window.location='ly2.php?user=".$user."'");
?>

解决方案 »

  1.   

    对不起
    <?php
    header("location:ly2.php?user=".$user);
    ?>
      

  2.   

    对,就这样:<?php  header("location: ly2.php?user=$user");?>
      

  3.   

    这个不行,因为跳转语句前面有很多的语句,结构是这样的:
    <? if (条件=true) {跳转;}?>在这里用header函数,肯定会报错。所以我才用javascript.怨我没有说清楚。庆祝为帮忙。!
      

  4.   

    1、
    <meta http-equiv=refresh content="刷新页面时间">
    2、
    <script language=javascript>
    function reload(){
       window.location=window.location;
    }
    setTimeout(reload(),1000);//1000等于1秒
      

  5.   

    <?
    ob_start(); //打开缓冲区 
    header(“location:index.php”); //把浏览器重定向到index.php 
    ?>