View Single Post
Old 03-11-2008, 01:50 PM   #2 (permalink)
Gareth
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default

I normally use a static method. For example I may have:

PHP Code:

$vName 
makeSafe($_POST['name']); 
One should never directly use submitted data. It should always be sanitised by a function, i.e. makeSafe in my example above.
Gareth is offline  
Reply With Quote