Page 1 of 1

Difference between server-side and client-side?

Posted: Sun Dec 14, 2008 1:02 pm
by barrowvian
Im new to Regex, and have been implementing some of it to my mini projects. One quick question though, and it'll probably sound really dumb...what is the difference between server-side validation and client-side validation? Is there any difference in the way they need to be written? And could someone please give me some examples of both types of validation, thanks

Re: Difference between server-side and client-side?

Posted: Sun Dec 14, 2008 8:19 pm
by califdon
I don't know what "client-side validation" could mean, since the whole concept of validation is to refer to data stored on the server.

Re: Difference between server-side and client-side?

Posted: Sun Dec 14, 2008 10:48 pm
by Benjamin
Client side validation is done as a convenience to the end user. You can use javascript to check that a form was filled out correctly which will save the user a page load. Back when modems were common this was a much greater benefit than it is today to website visitors.

Client side validation is not a replacement to server side validation, which should always be done regardless.

Re: Difference between server-side and client-side?

Posted: Mon Dec 15, 2008 12:58 pm
by califdon
astions wrote:Client side validation is done as a convenience to the end user. You can use javascript to check that a form was filled out correctly which will save the user a page load. Back when modems were common this was a much greater benefit than it is today to website visitors.

Client side validation is not a replacement to server side validation, which should always be done regardless.
Thanks, astions. My mind was fixed on user authentication, but of course the question was about data validation, quite a different issue. I need another cup of coffee.