Skip to main content
November 28, 2010
Question

Sanitizing input

  • November 28, 2010
  • 1 reply
  • 651 views

Does anyone know the code to sanitize user input. I have one iput text box and a submit button. When you fill the box and press submit it goes to another php page to tell you your input got added to the database. Does any one the PHP code for that?? Thanks

This topic has been closed for replies.

1 reply

Participating Frequently
November 28, 2010

Please provide your definition of sanitize.  I am not sure what you are trying to achieve.  Are you worried about SQL insertion attacks, foul language, spelling errors, ??

Knowing what you are exactly trying to prevent would be helpful.

Walt

B & B Photography

November 29, 2010

Mostly MySQL injections. Do you know any good

websites?

Participating Frequently
November 29, 2010

Try http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php