If you are setting a variable based on the logon
session_start(); // put in a include file so it's loaded in each page...
and use the...
session_register($variable);
... to pass the variable to any page you want
or
<INPUT TYPE=hidden NAME=variable VALUE=$value>
or
set a cookie...
If you know the variable
put it in a include file and require_once('filename.php');
define("VARIABLE1","value1");
define("VARIABLE2","value2");
using define() will keep you from having to define global vars in your functions.
CT