Menu
When I began codeing in PHP, I read that get and post variables were automatically available (Now I know they were talking about register globals). Many of my old form-handlers rely on register globals without much in the way of varification. I want to clean them up a bit without re-writing them. Would this code be a good start?
[code=php]foreach($_POST as $key=>$value){
$$key=stripslashes($value);
$$key=htmlentities($$key);
}
of course I could do the same for $_GET