//Handling: When Superglobals in php.ini disabled;
// In een bestand zetten dat geinclude wordt (bijv. db_inc.php)
if(isset($HTTP_POST_VARS)){
while(list($var, $val)=each($_POST)){
if (is_array($var)){
$arraySize = count($var);$ab = 0;
while ($ab <= $arraySize){
$$var[$ab] = $val[$ab];
$ab++;
}
} else {
$$var = $val;
}
}
}
//Error Handling: When Superglobals in php.ini disabled;
if(isset($HTTP_GET_VARS)){
while(list($var, $val)=each($_GET)){
if (is_array($var)){
$arraySize = count($var);$ab = 0;
while ($ab <= $arraySize){
$$var[$ab] = $val[$ab];
$ab++;
}
} else {
$$var = $val;
}
}
}