View Single Post
Old 03-14-2008, 10:13 PM   #14 (permalink)
stewart
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Default

Quote:
Originally Posted by maZtah View Post
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.
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote