tags:

views:

18

answers:

2

hi guys....i have a form with 20 fields .. i have 2 options ...one to validate on client side and another on click of submit button do a validation from server side using ajax and show result.....

which 1 to choose...which is faster server side or client side.. i am developing a application ..its not a website.

+1  A: 

i would do both.

client side should be easy with jquery validation plugin if the form is nothing out of the ordinary.

server side if you use any framework at work, it could be quick. if not it's just a lot of typing.

Funky Dude
i am using php zend framework..but not using its framework forms...but writing default forms.
pradeep
+1  A: 

Always do server-side, regardless of speed. Client side is optional and will be faster, but can be disabled by disabling Javascript, and you do not want to implicitly trust user input.

Matthew Jones