-1

I use jQuery to validate data. Submit only happens when everything is ok. Obviously, it is processed by PHP to inject into my database.

Is jQuery validation enough? Do I have to validate it again with PHP script. Is it possible for users to bypass jQuery validation? What should I do to make it secure and safe?

halfer
  • 19,471
  • 17
  • 87
  • 173
Maciek Semik
  • 1,778
  • 21
  • 37

1 Answers1

0

Client side validation should only be used to enhance the users experience i.e. present them with errors straight away rather than having them notified of the errors after submitting. A user can manipulate the JavaScript validation or even turn it off.

You need to always do validation on the server.

JavaScript: client-side vs. server-side validation

Community
  • 1
  • 1
row1
  • 5,498
  • 3
  • 44
  • 69