If you want an argument (variable) to go from page to page and isn’t security sensitive then using $_SESSION might be the way to go.
an example:
you would put this in an utility or config file at the top of each page
[php]session_start();
$username = (isset($_SESSION[‘username’])) ? $_SESSION[‘username’] : ‘Guest’; [/php]
Then all you would have to do in the page is do something like this (Most likely at the login page):
[php]$_SESSION[‘username’] = ‘Miguel Cabrera’;[/php]
or course there are many other ways to have variables go from page to page and have better security, but this is the low-down dirty method of doing it. 