DEV Community

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

Collapse
 
adamkdean profile image
Adam K Dean

Always have server-side validation in place, and then if you want to make your user interfaces more responsive, then have it on the client-side as well, but you should never omit it from server-side. The client-side validation is simply there to improve the user experience, while the server-side validation is there to ensure that the data you receive is in the format you expect and that nothing nefarious can occur.