The mantra around the monastery is always "don't trust Javascript." That is true if a server-side check is omitted altogether, but Javascript can provide a very fast preliminary client-side check that doesn't require the long trip to the server. The JS validation protects the user with a fast check, while the server side protects the internals.
I think both can work in tandem, with the understanding that the server-side validation will always be there.
In reply to Re^2: How to validate the form in CGI
by bradcathey
in thread How to validate the form in CGI
by gube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |