Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sanitizing input

Guest
Nov 28, 2010 Nov 28, 2010

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

TOPICS
Server side applications
651
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 28, 2010 Nov 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 28, 2010 Nov 28, 2010

Mostly MySQL injections. Do you know any good

websites?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 28, 2010 Nov 28, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines