- Joined
- Jul 16, 2007
- Messages
- 20
- Reaction score
- 0
Im trying to display a logged in user's username
I have a login script, i have a cookie, and i know that $user is the username used in the cookie. My header is modified so that i can use $user in the file, but it wont work...ill post the code:
This file is used as an include to my index.php...when i browse to that page, i see: Welcome back, .
Could you guys help me please?
I have a login script, i have a cookie, and i know that $user is the username used in the cookie. My header is modified so that i can use $user in the file, but it wont work...ill post the code:
PHP:
<div class="leftc">
<div class="blockTitlel">Member Panel</div>
<div class="blockContentl">
<?php
echo('Welcome back, '.$user.'.');
?>
<BR><BR>
<a href="newpost.php">Post!</a><BR>
<a href="logout.php">Logout</a><BR>
</div>
</div>
This file is used as an include to my index.php...when i browse to that page, i see: Welcome back, .
Could you guys help me please?

