How to clean a variable against xss and sql injections attack
By liviu - Posted on December 8th, 2008
Tagged:
How to clean a variable against xss and sql injections attack?
This should be quite efective:
$var=mysql_real_escape_string(trim(htmlspecialchars(strip_tags($_GET['var']))));
Bookmark/Search this post with:
- liviu's blog
- Login or register to post comments
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket