View Single Post
  #3  
Old 08-09-2006, 01:23 PM
ashley ashley is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ashley is on a distinguished road
Default

try this code

if (isset($_COOKIE['username']) && ($_COOKIE['password'])) {
print "Logged in as: ".$_COOKIE['username']. "<br />";
print "<a href=logout.php>log out?</a>";
}


&& ($_COOKIE['password'])

should be

&& isset($_COOKIE['password'])

bye buddy -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - displaying wrong username
View Single Post
  #3  
Old 08-09-2006, 01:23 PM
ashley ashley is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ashley is on a distinguished road
Default

try this code

if (isset($_COOKIE['username']) && ($_COOKIE['password'])) {
print "Logged in as: ".$_COOKIE['username']. "<br />";
print "<a href=logout.php>log out?</a>";
}


&& ($_COOKIE['password'])

should be

&& isset($_COOKIE['password'])

bye buddy -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote