Home >Backend Development >PHP Problem >How to implement web page jump after successful login in php

How to implement web page jump after successful login in php

卡哇伊
卡哇伊Original
2020-07-08 10:43:423942browse

php method to implement web page jump after successful web page login: first open the editor and create a new php file; then enter the code "header('Location: index.php');" in the php file; finally Run it in the browser and it will jump to the index.php page.

How to implement web page jump after successful login in php

#1. First, open the editor and create a new php file, for example: index.php.

How to implement web page jump after successful login in php

#2. In index.php, enter the code: header('Location: index.php');.

How to implement web page jump after successful login in php

#3. The browser runs the login.php page and will jump to the index.php page.

How to implement web page jump after successful login in php

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

Statement:
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