I want to clean up all of the input fields from a submitted form (using "post" method). I tried the following:
<?
foreach ($HTTP_POST_VARS as $key => $value) {
$key = strip_tags ($key);
$key = stripslashes ($key);
$key = trim ($key);
}
?>
This does not seem to work. Any suggestions?