in reply to Re: Form validation - server-side (Dancer) and client-side (javascript)
in thread Form validation - server-side (Dancer) and client-side (javascript)
Not only does that eliminate duplication, but by not having the validation code on the client side at all, it's more secure, since the client can't look at the page source and see what your validator expects.
Since you're always supposed to do server side validation, like the OP does using FormFu, it is not more secure
The point of client-side validation is saving server cpu/bandwidth, and instant notification for the user
|
|---|