• 技术文章 >后端开发 >php教程

    Header() in PHP &html – Refresh (Redirect) to Location (URL) in X seconds,headerinphp_PHP教程

    2016-07-13 09:56:45原创763

    Header() in PHP &html – Refresh (Redirect) to Location (URL) in X seconds,headerinphp


    Case 1 : Redirect a page to a URL without waiting in PHP.

    1 header("Location: index.php");

    Case 2 : Redirect a page to an URL after waiting for X seconds in PHP.

    1 2 3 4 5 header("Refresh: 5; url=index.php"); echo 'Logged in successfully.'; ?>

    HTML code to redirect a webpage after X seconds.

    1 <meta http-equiv="refresh" content="5; url=http://sau.comli.com/">

    www.bkjia.comtruehttp://www.bkjia.com/PHPjc/986429.htmlTechArticleHeader() in PHP html – Refresh (Redirect) to Location (URL) in X seconds,headerinphp Case 1 : Redirect a page to a URL without waiting in PHP. 1 header( "Location: index.php" )...

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:Header PHP amp html Refresh Redirect Location URL seconds
    上一篇:PHP多线程批量采集下载美女图片的实现代码_PHP教程 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)

    相关文章推荐

    • 一文详解PHP用流方式实现下载文件(附代码示例)• PHP反序列化入门总结(小白必看)• PHP原生类的总结分享• 聊聊PHP escapeshellarg函数使用的中文问题• 分享PHP函数使用小工具(附代码示例)
    1/1

    PHP中文网