validate input

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stack
    New Member
    • Sep 2007
    • 40

    validate input

    hi

    I wrote a website (for a coursework) where users are able to leave their comments and these comments are stored in the database. I need to check therefore for invalid input characters such as backslashes, quotes etc. My question is what are all characters that can make my application crash or even worse can delete data from the db? And also, is the validation usually done on the client or server?

    Thanks
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Have a look at this. It is better to validate the input on server side.

    Comment

    • stack
      New Member
      • Sep 2007
      • 40

      #3
      Thanks for the link, it is indeed a very good article. I guess a prepared statement would serve my purpose since I'm writing JSP.

      stack

      Comment

      Working...