我試圖創建一個沒有MySQL的簡單登錄系統,這樣我的客戶端就可以登錄並定向到一個有信息的頁面顯示任何文件鏈接和任何會議。當用戶輸入密碼時,將用戶重定向到一個頁面
我有這樣的:
//If the user is validated and every thing is alright, then grant the user access to the secured account page
//otherwise, display error message to the user
if ($vpb_error == '')
{
if(isset($_SESSION['validfullname']) && isset($_SESSION['validusername']) && isset($_SESSION['validemail']) && isset($_SESSION['validpassword']))
{
echo '<font style="font-size:0px;">completed</font>';
}
else
{
echo '<div class="info">Sorry, it seems your information are incorrect and as a result, we are unable to create the required sessions to log you into your account. Please enter your valid account information to proceed. Thanks.</div>';
}
}
else
{
echo $vpb_error;
}
fclose($vpb_databases);
}
}
else
{
echo '<div class="info">Sorry, we could not get your valid username and password to process your login. Please try again or contact this website admin to report this error message if the problem persist. Thanks.</div>';
}
}
//*********************************************************The login process ends here**********************************************************
我怎樣才能讓這個如果一切正常,它就會根據它們的用戶名,也就是說,如果他們的用戶名是詹姆斯,他們會重定向到一個頁面被髮送到james.php。
乾杯 劉易斯
是的!非常感謝。 –