Definatly would need more specifics because it depends on the situation. However, I am going to take a complete shot in the dark and guess that you want to use a session.
I really like these beginners articles zend made. Try this one: http://devzone.zend.com/node/view/id/646
The code would be something like
sessionstart();
$_SESSION['variable'] = "value";
and then on the page you want to retrieve it
sessionstart();
echo $_SESSION['variable'];
remember the sessionstart() must be placed before anything is output if you are using cookie based sessions.
This is a good method to use with site counters or carry login information between pages.