Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize Page Jump in php

Shulou Source: shulou.com Published: 2022-05-31 10:56:45 10月04日 Update

This article mainly introduces how to achieve page jump in php related knowledge, the content is detailed and easy to understand, simple and fast operation, has a certain reference value, I believe you read this php how to achieve page jump article will have a harvest, let's take a look at it.

1. Implement it in PHP script code

Header ("location:url address")? >

For example

Header ("location:helloworld.php")? >

The page jumps immediately because header performs a location redirection.

2. Delay the jump (for example, there will be a few seconds to wait after a successful login, and then jump to another page)

Header ("Refresh: seconds; url= address")? >

For example

Header ("Refresh:3;url=helloworld.php")? >

The jump will be performed in 3 seconds

Sleep (3); header ("location:url address")? this is the end of the article on "how to jump pages in php". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to achieve page jump in php". If you still want to learn more knowledge, you are welcome to follow the industry information channel.

Tags: Page address knowledge content article success code value easy to operate article time easy to understand more read script industry information information channel channel Zhongshi Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information MySQL Shulou Tech Info MariaDB