0
만료 된 이벤트에 대한 알림 이메일을 보내 드렸습니다. 이메일에는 사용자가 특정 이벤트 세부 정보를 다시 연결할 수있는 링크가 있습니다. 사용자가 로그인하지 않은 경우 로그인 페이지로 리디렉션됩니다. 로그인이 성공하면 홈 페이지로 돌아갑니다. 로그인 후 특정 이벤트 페이지로 리디렉션하려면 어떻게합니까?로그인 성공 후 원하는 페이지로 리디렉션하는 방법은 무엇입니까?
$contractid = $_REQUEST['Contract_ID'];
$contract_update_url = "contract_updates.php?id=".$contractid;
$MM_redirectLoginSuccess = "news_mgm.php";
if (isset($_SESSION['MM_Username'])){
header("Location: " . $MM_redirectLoginSuccess);}
if(!empty ($contactid))
{
header("Location: " . $contract_update_url);
}
else{
// header("Location: " . $MM_redirectLoginSuccess);
header("Location: javascript://history.go(-1)");
}
}
else {
header("Location: ". $MM_redirectLoginFailed);
}