I choose to validate from PHP because of a couple things.

1. It's more secure because nobody can see my PHP code, but they can
see my jQuery code.
2. If the user has JavaScript disabled, or for some other reason the
jQuery is unable to validate the code, it will still be validated.

On the other hand, validating with jQuery can be a bit faster, so as
long as security isn't a big concern, it can be a good choice as well.

Hope this helps,
Will

On Jan 7, 4:43 pm, Nikola <nik.cod...@gmail.com> wrote:
> I am wondering what the relative advantages / disadvantages are of
> validating purely in php vs. in jQuery.

Reply via email to