Found this answer helpful, however I have about 100 inputs that need updating.
I currently have this code for cleaning up the values:
foreach($_POST as $key => $value) {
$data[$key] = filter($value);}
Can I add the answer from the above link to this code to affect all 100 inputs or would I be forced to add the IF clause on each input.
Thank you.
1 Answer