i'm wondering why i have to validate forms on client side while they anyway need a server side (
ajax) validation for not being hacked?
IS there any benefit on having both client side and server side (ajax) form validations?
I mean they do the same thing but ajax takes 300ms and client takes 0ms probably, is this a really good reason why to make a duplicated validation? :P
Plus, using a single server side validation you remove not needed js from client side, i see only benefits in having only ajax validation, what about you?
If i'll go for a client side validation, is there some way/practice/logic to follow to not duplicate validation on server side ? Like ONLY if client side validation is ok server performs the action/request ?
Actually my logic is :
Server + Client side validation less requests -> more code (duplicated) -> more troubles -> better UX Server side validation (only ajax) more requests -> less code -> less troubles -> probably same UX !?
Sorry for maccheronic english asd :D