glottis
asked on
Form input validation
A general question I would like to ask is that when we create web-based applications what sort of validations do you think is better?
What I mean is that should the validation be checked on the client side (using JavaScript?) or on the server side.
One of my colleagues argued that validating on the client side is better than on server side, because you don?t want to overload the server. However I said that you cannot rely on the client as you in some cases might not know your audience and your validation may fail, also JavaScript sometimes causes a lot of problems.
So I would like your comments on whether to validate inputs on the client side or server side.
ps. sites like EE, Yahoo, Hotmail they all do validations on the server side (plus point I think :))
What I mean is that should the validation be checked on the client side (using JavaScript?) or on the server side.
One of my colleagues argued that validating on the client side is better than on server side, because you don?t want to overload the server. However I said that you cannot rely on the client as you in some cases might not know your audience and your validation may fail, also JavaScript sometimes causes a lot of problems.
So I would like your comments on whether to validate inputs on the client side or server side.
ps. sites like EE, Yahoo, Hotmail they all do validations on the server side (plus point I think :))
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the answer
ASKER