DEV Community

Discussion on: Input Validation: Client-side or Server-side?

Collapse
 
gabiduarte profile image
Gabrielle Duarte

Both, always! It is important to have client side to ensure better UX and avoid unnecessary requests to the server.

On the other side, do it on the server side always as validation is very necessary to mantain integrity of your data. Also, you can plug your server to different clients and don't have to remember to do all of those validations again ;)