A very simple demo, need to implement the prompt and jump, the main page requirements are not high, feel no need to use AJAX,JS and so on.
So the study of the PHP prompt and jump.
Start using the following jump:
echo "";
Alert inside is a hint of the message, href is prompted to jump after the page.
Then I thought of a redirect () redirection method in the TP framework and went to see it.
However, the TP comes with not a popup window, so it is modified to:
$url = "http://www.jbxue.com";
echo "
";
$url is the page to jump, at the same time, this can also control the jump time, the content behind the 0 is 0 seconds after the jump.
Two ways to jump directly:
Header ("Location:".) Psys_base_url. " User/index "); and header ("refresh:{$time};url={$url}");
These two ways without prompting, jump directly. The following one is recommended.
Finally, there is a problem, the jump code followed by a return, because the subsequent statements will also be executed.
http://www.bkjia.com/PHPjc/735046.html www.bkjia.com true http://www.bkjia.com/PHPjc/735046.html techarticle a very simple demo, need to implement the prompt and jump, the main page requirements are not high, feel no need to use AJAX,JS and so on. So the study of the PHP prompt and jump. Start using as ...