PHP页面跳转一:header()函数
Php代码
<?php header("Location: http://baidu.com"); exit(); ?>
PHP页面跳转二:meta标签
Html代码
< meta http-equiv="refresh" content="1;url=http://baidu.com">
PHP页面跳转三:JavaScript
Php代码
<?php $url = "http://baidu.com"; echo "< script language='javascript' type='text/javascript'>"; echo "window.location.href='$url'"; echo "< /script>"; ?>