Does anyone know where a snibit of code is to help me display a logged in users name at the top of the page they are on.
can I just put something in the sessions fuction to display the $loggedinusers name here at the top of every page. Ala Amazon.com.
Cmack
Please post questions in one forum.
If you're storing the user's name in the session, it should be easy... are you not doing that?
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10216070
I am using sessions.
You deleted the thread I wrote an answer in! Anyway, I wrote:
session_start(); if (!empty($_SESSION['username'])) { print "Welcome back " . $_SESSION['username']; }