php实现重定向的方法:1、【header()】函数,代码为【header('location:http://www.baidu.com')】;2、meta标签,代码为【echo '<meta http-equiv="refresh" 】。php实
php实现重定向的方法:1、【header()】函数,代码为【header('location:http://www.baidu.com')】;2、meta标签,代码为【echo '<meta http-equiv="refresh" 】。
php实现重定向的方法:
1、header()
函数;
header('location:http://www.baidu.com');
2、meta
标签;
echo '<meta http-equiv="refresh" content="1;url=http://www.baidu.com">';
3、script
标签;
echo '<script>window.location.href="http://www.baidu.com"</script>';
相关学习推荐:PHP编程从入门到精通
免责声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,也不承认相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,请发送邮件至:operations@xinnet.com进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。