03-14-2008, 10:13 PM
|
#14 (permalink)
|
|
WebDev'n Beer Drnkn' Fool
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
|
Quote:
Originally Posted by maZtah
I played a abit with it, this is also a way I came up with:
PHP Code:
foreach ($_POST as $szKey => $szValue)
{
$aForm[$szKey] = secureInput($szValue);
}
Then you have all the fields in the $aForm array. So when you want to echo the fields just do echo $aForm['name'];. Easy as that.
|
I was going to suggest that
Easiest way to go through and escape all of the input/post values.
|
|
|