PHP Implementation page Jump Instance _php tutorial

Source: Internet
Author: User
Method 1:php Header () function

Header ("location:http://www.downcc.com");
?>

Attention:
1. Location and: There can be no space between, otherwise will not jump.
2. There must be no output before the header ().
3. The PHP code after the header () will also be executed.

Method 2:meta Label

The META tag is the tag in HTML that is responsible for providing the meta-information of the document, which can be used in a PHP program or a page jump. If you define HTTP-EQUIV as refresh, the page will be opened to the appropriate page for a certain amount of time based on the values specified in the content. If you set content= "seconds; url= url", you define how long it takes for the page to jump to the specified URL.




HTML title

I love php!.

Method 3:javascript Implementation

http://www.bkjia.com/PHPjc/371389.html www.bkjia.com true http://www.bkjia.com/PHPjc/371389.html techarticle method 1:php Header () function? PHP header (location:http://www.downcc.com); Note: 1. Location and: There can be no space between, otherwise it will not jump. 2. Header () cannot have any ...

  • 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.