<small id='YyOdM'></small><noframes id='YyOdM'>

    1. <i id='YyOdM'><tr id='YyOdM'><dt id='YyOdM'><q id='YyOdM'><span id='YyOdM'><b id='YyOdM'><form id='YyOdM'><ins id='YyOdM'></ins><ul id='YyOdM'></ul><sub id='YyOdM'></sub></form><legend id='YyOdM'></legend><bdo id='YyOdM'><pre id='YyOdM'><center id='YyOdM'></center></pre></bdo></b><th id='YyOdM'></th></span></q></dt></tr></i><div id='YyOdM'><tfoot id='YyOdM'></tfoot><dl id='YyOdM'><fieldset id='YyOdM'></fieldset></dl></div>
      1. <legend id='YyOdM'><style id='YyOdM'><dir id='YyOdM'><q id='YyOdM'></q></dir></style></legend>

          <bdo id='YyOdM'></bdo><ul id='YyOdM'></ul>

      2. <tfoot id='YyOdM'></tfoot>

        PHP 标头重定向到具有时间间隔的多个 URL

        PHP Header redirect to Multiple URLs with a time gap(PHP 标头重定向到具有时间间隔的多个 URL)
        • <bdo id='qyL5F'></bdo><ul id='qyL5F'></ul>

        • <legend id='qyL5F'><style id='qyL5F'><dir id='qyL5F'><q id='qyL5F'></q></dir></style></legend>
          <i id='qyL5F'><tr id='qyL5F'><dt id='qyL5F'><q id='qyL5F'><span id='qyL5F'><b id='qyL5F'><form id='qyL5F'><ins id='qyL5F'></ins><ul id='qyL5F'></ul><sub id='qyL5F'></sub></form><legend id='qyL5F'></legend><bdo id='qyL5F'><pre id='qyL5F'><center id='qyL5F'></center></pre></bdo></b><th id='qyL5F'></th></span></q></dt></tr></i><div id='qyL5F'><tfoot id='qyL5F'></tfoot><dl id='qyL5F'><fieldset id='qyL5F'></fieldset></dl></div>

          <small id='qyL5F'></small><noframes id='qyL5F'>

            <tfoot id='qyL5F'></tfoot>

                <tbody id='qyL5F'></tbody>

                1. 本文介绍了PHP 标头重定向到具有时间间隔的多个 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我可以使用 header() 重定向到多个 URL 之间的时间间隔吗?假设我有 url1 和 url2.现在,我想要的是标题首先重定向到 url1.然后说,5 秒后,它会将我重定向到 url2.有没有办法我可以做到这一点?我尝试了以下简单代码

                  Can i use header() to redirect to multiple URLs with a time gap in between? Suppose i have url1 and url2. Now, what i want is that header first redirects to url1. Then say,after 5 seconds, it redirects me to url2. Is there a way i can do that? I tried the following simple code

                  <?php
                  header("Location: url1");
                  header("Location: url2");
                  ?>
                  

                  但这会立即将我带到 url2.我想要两者之间的时间间隔.怎么可能呢?提前致谢.

                  But this takes me immediately to url2. I want a time gap in between. How can that be done? Thanks in advance.

                  推荐答案

                  正如 subirkumarsao、Martin 和 Edmunds 所指出的,iframe 是要走的路.这是最终代码:

                  As pointed out by subirkumarsao, Martin and Edmunds, iframes is the way to go. Here is the final code:

                  <html>
                  <iframe src="url1" width="500" height="500"> </iframe>
                  </html>
                  
                  <?php
                  include('exp2.php');
                  ?>
                  

                  现在 exp2.php 有一个提交按钮(它出现在框架的底部),它把我带到 next.php.next.php 有代码:

                  Now exp2.php has a submit button(This appears at the bottom of frame) which takes me to next.php. And next.php has the code:

                  <?php
                  header("Location:url2");
                  exit();
                  ?>
                  

                  这篇关于PHP 标头重定向到具有时间间隔的多个 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                        <bdo id='kLreD'></bdo><ul id='kLreD'></ul>

                        <tfoot id='kLreD'></tfoot>
                          <legend id='kLreD'><style id='kLreD'><dir id='kLreD'><q id='kLreD'></q></dir></style></legend>
                        • <small id='kLreD'></small><noframes id='kLreD'>

                              <tbody id='kLreD'></tbody>

                          1. <i id='kLreD'><tr id='kLreD'><dt id='kLreD'><q id='kLreD'><span id='kLreD'><b id='kLreD'><form id='kLreD'><ins id='kLreD'></ins><ul id='kLreD'></ul><sub id='kLreD'></sub></form><legend id='kLreD'></legend><bdo id='kLreD'><pre id='kLreD'><center id='kLreD'></center></pre></bdo></b><th id='kLreD'></th></span></q></dt></tr></i><div id='kLreD'><tfoot id='kLreD'></tfoot><dl id='kLreD'><fieldset id='kLreD'></fieldset></dl></div>