看板 PHP 關於我們 聯絡資訊
程式碼: <?php . . 略過 . header("location:result.php?email={$_POST['email']}") ; ?> 錯誤訊息: Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\process.php:7) in C:\AppServ\www\process.php on line 28 請問一下...這錯誤訊息是在說什麼... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.38.105.199
sahjlee:在 header 之前已經有東西被輸出了 (process.php 第7行) 08/30 21:34
deathfullove:第7行是 <?php 08/30 21:37
tkdmaf:所以你的第1行到第6行是HTML,那就是OUTPUT了。 08/30 21:38
deathfullove:1~6 行砍掉了 08/30 21:41
deathfullove:在 header() 之前 我有echo {$_POST['email']}; 08/30 21:42
gname:bom? 08/30 21:43
deathfullove:砍掉它就好了@@ 08/30 21:43
deathfullove:因為要把process.php. 的echo 導到 result.php來顯示 08/30 21:44
deathfullove:問題解決了 謝謝大家>"< 08/30 21:45