I know maybe there's question about validation in client or server. but this one for Enterprise applications such as Sales, Clients systems
Should the input validation like number, strings, dates be in client-side ? or strongly be in both ? or in server-side only.
Reason of asking is :
In server-side validations example( Check for branch if exists, check if Store Exists. no problem happened at these scenarios because its server-side already. ) i don't speak about these points ( which related to Database things )
Again. sorry for asking question as this. but please give opinions from people who works on Enterprise solutions will help me to take a choice.
Always validate all user data on the server side. Like in ALWAYS and ALL.
Client side validation is only for UX.
Edit: added all.
P.S.: You can't trust the user
P.P.S.: You cannot trust the user!!! I might not even be a user sitting at his desk in front of the screen. It might just be a software that tries to breach your form. And by it might I really mean it will! There are thousands of crawlers out there that eventually will attack your system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With