If you create you register your variables in "session_register(myvar);" and then set the var to have a value. "$myvar = myvalue;" then you'll have $myvar accessable on each page that you use the "session_start()".
If your not using sessions, then I can't help.
Hope it helps
John