Page jump in PHP

Source: Internet
Author: User

Http://blog.csdn.net/liu_james/archive/2008/03/12/2172864.aspx

Stick it directly!

First:
Echo "<meta http-equiv = \" Refresh \ "content = \" seconds; url = redirected file or address \ "> ";
Where: XX indicates the number of seconds, and 0 indicates the jump immediately. Refresh indicates the Refresh. url indicates the page to jump.

Method 2: Using script
<SCRIPT> url = "Submit. php"; window. Location. href = URL; </SCRIPT>

The third method is to use the script. The difference is that the open statement can be used, and the original window, parent window, child window, or new window can be restricted.
<SCRIPT> url = "Submit. php"; window. Open (\ 'url, \ ', \' _ Self \ '); </SCRIPT>
Change \ '_ Self \' to limit whether the original window is a parent window, a subwindow, or a new window. Fourth, use the PHP built-in function to send the header information.
Header ("Location: URL ");

Fast and powerful... but there is a problem that must be pointed out: if there is HTML output before using this function, even if it is a space. the error message is displayed at the top of the page .. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.