EPJS wrote:$HTTP_POST_VARS = Register Global = bad
No,
$_POST = Super global = good
$HTTP_POST_VARS = ordinary variable, doesn't use register_globals = deprecated
$whatever = ordinary variable, uses register_globals = bad
mtmathome wrote:Would there be a single statement that could validate all variables at once?
Depends on what "validate" means. Frankly, rewriting the script would be better since any temporary workarounds (e.g., [man]extract[/man]) would generally negate the reason for turning register_globals off in the first place.