/ Published in: Other
Expand |
Embed | Plain Text
unction cleanuserinput($dirty){ if (get_magic_quotes_gpc()) { $clean = mysql_real_escape_string(stripslashes($dirty)); }else{ $clean = mysql_real_escape_string($dirty); } return $clean; }
Comments
Subscribe to comments
You need to login to post a comment.

unction ? where's the F ?
mines better ;) http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/