php page jump function page redirection

WBOY
Release: 2016-07-25 08:54:18
Original
921 people have browsed it
  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. ?>
Copy the code

Note that there is a space after "Localtion:".

2. Use HTML tags To use HTML tags is to use META's REFRESH tag. Example:

  1. Copy the code

3. Use script Examples are as follows:

  1. $url="http://bbs.it-home.org";
  2. echo "< !--< SCRIPT LANGUAGE="JavaScript">";
  3. echo " location.href="/′";$url′";
  4. echo "< /SCRIPT>-->";
  5. ?>
Copy code

>>>> Articles you may be interested in: PHP page jump Js page jump code PHP page jump (URL address jump) implementation code PHP jump function code sharing Six ways to jump to PHP pages Three ways to implement PHP page jump code Several ways to jump to PHP pages Summary of various methods of PHP page jump Detailed explanation of PHP 301 jump method php url redirection (page jump) code A different way to implement page jump in php Several ways to implement page jump in php



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!