strange...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Ne0
Forum Commoner
Posts: 60
Joined: Sat Feb 14, 2004 11:48 am

Post by Ne0 »

yea, i have it to accept all cookies, and i did a little search and came up with isset(), so i replaced the old one wit this:

Code: Select all

<?
if (isset($_SESSION['first_name'])){
	echo "&nbsp&nbsp ( <a href=login.php>Log In</a> )( <a href=index.asp?p=form&f=reg>Register</a> )";
}else{
	echo "&nbsp&nbsp ( <a href=cp.php>Control Panel</a> )( <a href=logout.php>Logout</a> )( <font color=gray>$_SESSION['first_name']</font> )";
}
?>
and that still didnt work...


EDIT: OMG!
, i cant belive i missed it....i forgot to put "blah " . $_SESSION['first_name'] . "blah";

i for got the "." around $_SESSION, err, o well, thank you everyone for your help, i am now another step closer to finishing my site.

THANKS AGAIN! :D
Post Reply