Forum Moderators: coopster
e.g.
-----start of page---------
<?
$page=HTTP_GET_VARS['page'];
//this works fine and populates $page
?>
SOME HTML blah blah blah
<?
//now i'n trying to pick up the var $page but it's empty!.
?>
------end of page-------------
How can I get the value in $page to persist over the 2 blocks of php?
global $page;
Check the Variable scope [php.net] section of the manual for more info.