我想從登錄頁面重定向到我的主頁使用PHP。 我用下面的代碼行:header('location:index.php');
inspite重定向我收到錯誤,如:頁面重定向問題在php
Warning: Cannot modify header information -
headers already sent by (output started at C:\wamp\www\student\login.php:18)
in C:\wamp\www\student\login.php on line 19
你甚至用google搜索錯誤嗎?這就像你可以做的最常見的PHP錯誤之一。 – 2011-05-11 10:38:58
我可以看到你的代碼嗎? – Saleh 2011-05-11 10:40:59