Global Variables
Posted: Sun Jan 24, 2010 10:49 pm
We have 23 variable values we need passed from one page to another, rather than just string them into a long REST command, write them into a cache file, or write them to a mySQL database.
$_POST gets reset to the values of a form when a button is clicked. $_REQUEST only contains info from the current script.
Is there a SAFE global that can be used to pass values, ie, $_POST['partID'] = '1234', or is there a way to keep $_POST from being reset when a button is clicked. We are trying to stay with PHP and no get into JavaScript.
$_POST gets reset to the values of a form when a button is clicked. $_REQUEST only contains info from the current script.
Is there a SAFE global that can be used to pass values, ie, $_POST['partID'] = '1234', or is there a way to keep $_POST from being reset when a button is clicked. We are trying to stay with PHP and no get into JavaScript.