How to implement successful login page jump in php
First, it will be judged whether the user has successfully logged in. If the login is successful, use "header( )" function, set the "Location" of the http request header to the URL address that needs to be jumped, and then use the function "exit()" to end the script.
header() function
header() is used to send native HTTP headers.
header ( string $string [, bool $replace = true [, int $http_response_code ]] ) : void
Usage examples
<?php header('Location: http://www.example.com/'); exit; ?>
Recommended tutorial: "PHP Tutorial"
The above is the detailed content of How to jump to the page after successful login in php. For more information, please follow other related articles on the PHP Chinese website!