php 中实现页面跳转的方法

Posted 知其黑、受其白

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 中实现页面跳转的方法相关的知识,希望对你有一定的参考价值。

1、php 使用 header()函数 进行页面跳转

示例代码:

header(\'location:wgchen.blog.csdn.net\');

2、php 利用 html 中的 meta 标签进行页面跳转

示例代码:

//延时3秒跳转
echo \'<meta http-equiv="refresh" content="3;url=wgchen.blog.csdn.net"> \';
//直接跳转秒跳转
echo \'<meta http-equiv="refresh" content="0;url=wgchen.blog.csdn.net"> \'

以上是关于php 中实现页面跳转的方法的主要内容,如果未能解决你的问题,请参考以下文章