PHP: foreach and array issue

kinmisoba

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