Home > Backend Development > PHP Problem > How to delay page jump in php

How to delay page jump in php

藏色散人
Release: 2023-03-12 20:28:01
Original
2552 people have browsed it

In PHP, you can achieve delayed page jump by setting the code "header("Refresh:5;url=index.php");", where Refresh specifies a certain time interval for jump.

How to delay page jump in php

The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.

How to delay page jump in php?

When php uses header redirection, you can set a delayed jump.

The code is as follows:

header("Refresh:5;url=index.php");
Copy after login

Refresh: Jump at a certain time interval .

The header() function sends raw HTTP headers to the client.

It is important to realize that the header() function must be called before any actual output is sent.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to delay page jump in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template