Re: question about 'register_globals' setting
| From: | Chris Hewitt | Date: | Mon, 13 Jan 2003 19:16:47 +0000 |
| Subject: | Re: question about 'register_globals' setting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131461@lists.php.net to get a copy of this message | ||
Don wrote:
I'm using I.E. 6. Its not a browser thing, but a PHP thing.
I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has been reloaded. Is this a normal effect of setting register_globals OFF? Is there a way to continue caching? Yes, this is exactly what register_globals does. If you are using the recommended setting of off then you get at your variables with the new super-globals, that is:
$myvar = $_POST['myvar']; // for POST data. $myvar = $_GET['myvar']; // for GET data. $myvar = $_REQUEST['myvar']; // for both POST and GET data.Hope this helps. Chris