To pass a variable you can use $_GET which will get the variable passed in the url, like this:
site.com/index.php?variable_here=whats+up
so $_GET['variable_here'] = whats up
or, you can store the variable in a session. Just do something like:
Code:<? session_start( ); $_SESSION['test'] = "whats up"; session_write_close(); ?>