Hey all,
I've been wondering what you can do to make user inputted text safe for
input to a database, which will then be echoed back to a browser at
some point. Currently I'm running it through the following functions:
nl2br, htmlentities and stripslashes (if magic quotes is off). Is there
anything else I should test for before inserting into my table?
Ben.
I've been wondering what you can do to make user inputted text safe for
input to a database, which will then be echoed back to a browser at
some point. Currently I'm running it through the following functions:
nl2br, htmlentities and stripslashes (if magic quotes is off). Is there
anything else I should test for before inserting into my table?
Ben.
Comment