Php page jump function page redirection

Source: Internet
Author: User
Php page jump function page redirection

  1. If (isset ($ url ))
  2. {
  3. Header ("HTTP/1.1 303 See Other ");
  4. Header ("Location: $ url ");
  5. Exit; // from bbs.it-home.org
  6. }
  7. ?>

Note: "Localtion:" is followed by a space.

2. HTML-based tags are marked with HTML, that is, meta refresh-based tags. Example:

  1. 3. use a script as an example:

    1. $ Url = "http://bbs.it-home.org ";
    2. Echo "<! -- <Script language = "JavaScript"> ";
    3. Echo "location. href ="/'"; $ url ′";
    4. Echo "</SCRIPT> --> ";
    5. ?>

    >>> Articles you may be interested in: PHP page jump Js page jump code PHP page jump (URL jump) code PHP jump function code sharing PHP page jump six methods PHP page jump code three implementation methods PHP page jump several methods PHP page jump a variety of methods PHP page jump summary PHP 301 jump method php url redirection (page jump) php code to achieve page jump a different method php to achieve page jump several methods

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.