I have this:
foreach($_POST as $key => $value) {
$data[$key] = filter($value);
}
filter();
strips if any tags, and real escape them.
Now I have an array in the POST form too, so I am getting errors in strip_tags()
and mysql_real_escape_string
. How should I let only $_POST["Searching"]
not get filtered by filter();
?