I'm looking for ways to protect my site against possible hackers.
I've got a form with some textfields and textareas, is it enough to:"
- mysql_real_escape_string() every post value before entering it into a db
- htmlentities() before outputting it
Is it necessary to use stripslashes as well? Cause that would alter entered slashes from the user.
I've got a form with some textfields and textareas, is it enough to:"
- mysql_real_escape_string() every post value before entering it into a db
- htmlentities() before outputting it
Is it necessary to use stripslashes as well? Cause that would alter entered slashes from the user.
Comment