-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,824
  • 17
  • 99
  • 186
Maciek Semik
  • 1,872
  • 23
  • 43

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,568
  • 3
  • 46
  • 72