Difference between server-side and client-side?
Moderator: General Moderators
-
barrowvian
- Forum Commoner
- Posts: 47
- Joined: Tue Aug 19, 2008 3:49 pm
Difference between server-side and client-side?
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?
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?
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.
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?
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.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.