Page is a not externally linkable
andreasfriedrich - 10:55 pm on Aug 23, 2002 (gmt 0)
foreach ($HTTP_GET_VARS as $key=>$value) { won´t work. But switching register_globals on is not the only way to directly use the modified values. There is a better way as you predicted yourself. And there is no need to assign them to vars at the beginning of your script or to use variable variable names. All you need to do is: foreach ($HTTP_GET_VARS as $key=>$value) {
As mentioned in [php.net...] foreach works on a copy of the array. So
$value = stripstuff($value);
}
$HTTP_GET_VARS[$key] = stripstuff($value);
}