There are several ways to implement page jump in PHP
Achieved in PHP script code
##
Delayed jump (For example, after successful login, there will be a few seconds of waiting time, and then it jumps to other pages)
The sleep() method is called, and the effect is that the jump will be executed after x seconds Transfer
Implement in js script code
1.window.location.href method<script type="text/javascript"> window.location.href="helloworld.php" </script>
<script type="text/javascript"> setTimeout("window.location.href='helloworld.php'",3000); </script>
<script type="text/javascript"> window.location.assign("helloworld.php"); </script>
<script type="text/javascript"> window.location.replace("helloworld.php"); </script>
<script type="text/javascript"> window.open("index.php",_blank,width=300px); </script>
Use HTML script code to complete the jump
<meta http-equiv="refresh" content="3;url='helloworld.php'">
The above is the detailed content of Divine operation to realize PHP jump. For more information, please follow other related articles on the PHP Chinese website!