作者livemelody (livemelody)
看板PHP
標題[請益]應該是header戌陸暋D
時間Thu Aug 17 23:16:24 2006
<?php
if($area == "火車旅遊"){
include('prodshow.php');
}
elseif($area=="自主旅行"){
header("Location: free2.php");
}
else {
header("Location: overseas2.php");
}
echo $area."<br>";
echo $lot."<br>";
echo $gdate."<br>";
?>
我是 從 index.php 按了 到 那 語法 判斷 然後 引導到 另一網頁去
但是它就不理我 = =
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.74.179.74
1F:推 alpe:口胡!!! 去看DOC !! 08/17 23:25
2F:→ alpe:header("location: 絕對路徑"); 08/17 23:26
3F:推 ybite:首先,Location:後面需要指定完整的路徑 08/18 00:10
4F:→ ybite:再來,送出header之後不應該再有任何輸出 08/18 00:10
5F:推 ast9869:是之前不能有輸出吧! 08/18 00:52
6F:→ alpe:header之前不能有... 之後可以啊 08/18 02:40
7F:推 alpe:我記得,要有也可以啦... buffer 要夠就是了 08/18 02:43
8F:→ kong0107:相對路徑有時也可用的說.... 08/18 07:58
9F:推 appleboy46:ob_start(); 08/18 22:14