You could do as pablodelapena said.
Assuming you're not using forms, in your script do this:
$link = "http://www.yoursite.com/nextscript.php?var=" . $var
Then do whatever you want with the link (probably redirect the user to that page). Then you'll have your variable in that page! 🙂
Alternatively you could store the var in a cookie (on the user's pc-NOT for sensitive data!), or store it in a session (on the server).
setcookie("nameofcookie", $var);
We didn't set a lifetime, so it'd get deleted when the browser is shut - probably fine (unless it's a user's customisation like a chosen site skin or something). You would use it in the next script like:
$_COOKIE['var']
For sessions you'd do this in your first script:
session_start()
$_SESSION['var'] = $var;
On your next script simply start the session again with session_start(), and then you can use the variable with $_SESSION['var'].
Hope that helped.