Programmer Question
This is the sanitization function used in a book I recently learned from - "Ajax, Javascript, and PHP (Sams)". I've been using it on my own php site. Is it safe for real-world usage?
function sanitizestring($var)
{
$var = strip_tags($var);
$var = htmlentities($var);
$var = stripslashes($var);
return mysql_real_escape_string($var);
}
Find the answer here
No comments:
Post a Comment