doukekui0914 2017-05-24 14:51
浏览 112

PHP重定向不显示重定向到的页面内容

Page1.php code;

...
header('Location: editt.php?msg=landing&msisdn='.$msisdn);
...

page2.php code;

$msisdn = $_GET['msisdn'];
$msg = $_GET['msg'];
echo 'Page 2 Content '.$msisdn;
  • 写回答

2条回答 默认 最新

  • dre26973 2017-05-24 15:03
    关注

    The piece of code you posted works , maybe in the rest of your code there is some html output before header( ) , this can be also in some of included files if there is some .

    UPDATE :

    Some useful answers about the same issue could be found here :

    php-header-redirect-not-working

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题