note 23419 deleted from security.registerglobals by dams
| From: | dams@php.net | Date: | Wed, 31 Jul 2002 19:08:33 +0000 |
| Subject: | note 23419 deleted from security.registerglobals by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34060@lists.php.net to get a copy of this message | ||
To keep using old style of form variables handling and in same time be protected you can use
function like this:
function catch_request($name)
{
$GLOBALS[$name]=NULL;
if(isset($_REQUEST[$name])):
$GLOBALS[$name]=$_REQUEST[$name];
endif;
}
Just add catch_request("VAR") line for each variable that you expect to be received from
the form.