?P"/> ?P">

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

PHP页面跳转几种兑现技巧

WBOY
WBOYOriginal
2016-06-13 11:26:29808browse

PHP页面跳转几种实现技巧

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

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

?

PHP页面跳转二:meta标签

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

?

PHP页面跳转三:JavaScript

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

?

Statement:
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