Guestbook Admin Interface



"; echo "


Username:
Password:

"; echo "
"; } else { //echo "
You are logged in as: " . $_SESSION['Username'] . " Logout
"; //echo "

Enter Admin Interface

"; $URL="index.php"; header ("Location: $URL"); } // If they want to logout then if (@$_GET['mode'] == "logout") { // Start the session session_start(); // Put all the session variables into an array $_SESSION = array(); // and finally remove all the session variables session_destroy(); // Redirect to show results.. echo ""; } ?>