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

PHP页面跳转几种兑现技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:26:29
Original
845 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:
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
Latest Issues
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template