?P"/> ?P">
Home > Backend Development > PHP Tutorial > PHP页面跳转几种兑现技巧

PHP页面跳转几种兑现技巧

WBOY
Release: 2016-06-13 11:26:29
Original
805 people have browsed it

PHP页面跳转几种实现技巧

PHP页面跳转一:header()函数

<?phpheader("Location: http://baidu.com");exit();?>
Copy after login

?

PHP页面跳转二:meta标签

< meta http-equiv="refresh" content="1;url=http://baidu.com">
Copy after login

?

PHP页面跳转三:JavaScript

<?php  $url = "http://baidu.com";echo "< script language='javascript' type='text/javascript'>";echo "window.location.href='$url'";echo "< /script>";?> 
Copy after login

?

Related labels:
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