magic quotes php
according , method formula some-more portable, advise controlling something following evading data:
if (!get_magic_quotes_gpc()) {
$lastname = addslashes($_post['lastname']);
} else {
$lastname = $_post['lastname'];
}
i have validation checks i performing, nonetheless secure above quite terms evading data? i also saw incantation quotes deprecated php 6. impact above code? i move have rest database-specific evading duty mysql_real_escape_string().
Comments
Post a Comment