View Single Post
Old 12-03-2008, 05:59 PM   #4 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

regarding all those stripslashes you have, what you can do is have an external file called functions and have a function like this


function secure($value) {

return mysql_real_escape_string(addslashes(trim($value))) ;

}

and for every field you want to escape symbols you just do secure($_POST['something']);

much cleaner :)
__________________
no signature set
sarmenhb is offline  
Reply With Quote