View Single Post
Old 07-03-2008, 08:38 PM   #2 (permalink)
codefreek
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

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!";

codefreek is offline  
Reply With Quote