بناء التحقق من صحة المستخدم وإضفاء طابع شخصي
الفصل 24
// start output html
do_html_header("Logging Out");
if (!empty($old_user))
{
if ($result_unreg && $result_dest)
{
// if they were logged in and are now logged out echo "Logged out.<br>";
do_html_url("login.php", "Login");
}
else
{
// they were logged in and could not be logged out
echo "Could not log you out. <br>";
}
else
{
}
// if they weren't logged in but came to this page somehow
echo "You were not logged in, and so have not been logged out.<br>"; do_html_url("login.php", "Login");
do_html_footer();
?>
Chringe password
Microsoft Internet Explorer
p://webserver/chapter24/change_passwd_form.php
PHPbookmark
Change password
Logged in as laura.
Home | Add BM | Dialera SM | Change password Recommend URLs to me | Logout
الشكل (724)
يزود النص البرمجي change_passwd_form.php نموذجاً يستطيع المستخدمون أن يغيروا فيه
كلمات مرورهم.
570
ص ٥٥٤