In PHP when submitting strings to the DB should I take care of illegal characters using htmlspecialc

Posted by Brook on Stack Overflow See other posts from Stack Overflow or by Brook
Published on 2010-06-07T20:46:31Z Indexed on 2010/06/07 20:52 UTC
Read the original article Hit count: 348

I am working on a form with the possiblity for the user to use illegal/special characters in the string that is to be submitted to the database. I want to escape/negate these characters in the string and have been using htmlspecialchars(). However, I would like to know if there is a better/faster method.

© Stack Overflow or respective owner

Related posts about php

Related posts about special-characters