PHP頁面跳到一:header()函數
Php程式碼
<?php header("Location: http://baidu.com"); exit(); ?>
PHP頁面跳到二:meta標籤
Html 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>"; ?>