07-03-2008, 08:38 PM
|
#2 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
PHP Code:
if ($_SESSION['logged'] == 1) { // User is already logged in.
header("Location: settourpagename.php"); // Goes to what page u want
exit(); // Stops the rest of the script.
} else {
if ( ! isset($username))
{
$username = '';
}
if ( ! isset($password))
{
$password = '';
}
echo "Put something here!";
}
|
|
|
|