tomyknoker
03-31-2007, 02:18 PM
I have this php code after my first login page... But it doesn't display the user's username... Any ideas?
<p>Welcome <? echo $_SESSION['txtUserId']; ?>/ <a href="index.php">Logout</a></p>
iLLin
03-31-2007, 02:30 PM
Man... do people even search these days? I mean there is a logged in/out topic on the main page...
tomyknoker
03-31-2007, 02:32 PM
Where is it? I did search and saw nothing...
iLLin
03-31-2007, 02:35 PM
3rd from bottom,
http://www.codingforums.com/showthread.php?t=111059
the-dream
03-31-2007, 04:47 PM
if( isset( $_SESSION['MM_Username'] ) )
{
echo 'welcome/logout';
}
else
{
echo 'register';
}
Nightfire
03-31-2007, 04:51 PM
if( isset( $_SESSION['MM_Username'] ) )
{
echo 'welcome/logout';
}
else
{
echo 'register';
}
That's not what he's wanting, if you read his post.
iLLin
03-31-2007, 05:20 PM
Yea but it shows him how to check if the session var is set.
the-dream
03-31-2007, 06:59 PM
Thanks, At least someone appreciates it!