U could use a session.
Check the documentation for session_start() and session_register()
Another option would be to run a function at the beginning of every page to extract your values.
For easy access I store such often-needed data in one big array.