PHP跳转方法:Header() + location.href
生活随笔
收集整理的这篇文章主要介绍了
PHP跳转方法:Header() + location.href
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
方法一
<?phpHeader("Location:http://www.baidu.com");方法二
<?phpecho "<script>location.href='http://www.baidu.com'</script>";https://www.php.cn/php-weizijiaocheng-387107.html
总结
以上是生活随笔为你收集整理的PHP跳转方法:Header() + location.href的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 家常疙瘩汤的做法?
- 下一篇: PHP测试使用postman发送post