0
我有以下代碼將用戶重定向到他們的右頁。不過,我在瀏覽器中得到一個錯誤:頁面沒有正確重定向3
錯誤:
The page is not re-directing correctly
代碼:
<?php
/**
* User has already logged in, so display relevant links, including
* a link to the admin center if the user is an administrator.
*/
if (($session->logged_in) && ($session->isAgent())) {
header("Location: gallery_Agent.php");
} elseif (($session->logged_in) && ($session->isMaster())) {
header("Location: gallery_Master.php");
} elseif (($session->logged_in) && ($session->isAdmin())) {
header("Location: gallery_Admin.php");
}
else { ...
我怎麼可能解決這一問題?
約瑟夫
嘗試使用絕對網址也許 – Maresh 2013-03-13 10:27:29