Not validation, filtering. Let's take the case of a phone number into a text field. Wouldn't the best practice be to only allow numbers to be input into that field? What's the point of doing it server side and kicking it out when the user could have been saved the hassle on the client side of having to redo it? Server side validation is still good to do to as a precaution, but as good design shouldn't the first step be to prevent invalid input?
Richard Golebiowski wrote:Not validation, filtering. Let's take the case of a phone number into a text field. Wouldn't the best practice be to only allow numbers to be input into that field? What's the point of doing it server side and kicking it out when the user could have been saved the hassle on the client side of having to redo it? Server side validation is still good to do to as a precaution, but as good design shouldn't the first step be to prevent invalid input?
As I said, client-side [whatever you want to call it] is fine, but ultimately is nothing but user experience enhancement. Input filtering a subset of validation.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.