I use this to clean all user input
What's not needed and what can I add to increase it's effectiveness?PHP Code:function clean($str) {
$str = trim($str);
if(!get_magic_quotes_gpc()) {
$str = addslashes($str);
}
$str = strip_tags(htmlspecialchars($str));
return $str;
}





Reply With Quote





