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"> '

猜你喜欢

转载自blog.csdn.net/weiguang102/article/details/125933113
今日推荐