Nick,
I found this gem while doing research on the exact same question :
There are generally 3 ways to pass variables from page to page (file to file)
1.) URL (query string).
example:
bob.php?key=value
You an retrieve key by using
$HTTP_GET_VARS['key']
2.) Form
using the <form action='post'>
any form elements will be in the
$HTTP_POST_VARS['key']
3.) Cookie
$HTTP_COOKIE_VARS['key']
Hope this helps!