When you have a form on a web page, you’ll most likely find the need to validate the values a user enters. Client-side validation has advantages for the server, the user and the developer.
Validating forms on the client side lightens the load on the server and allows for you to format data before it is sent for processing. Because validation takes place on the client machine, there’s no delay from the client contacting a remote server. Besides the user getting a quicker response, network bandwidth and server processing power are both conserved.
Using server-side validation, there is noticeable lag time when data the user submits contains an error. Form data must travel over the Internet and be examined by the server. Eventually, the user will receive a response page only to discover that there was an error and that the submittal process needs to be repeated. Running a little preliminary validation of the user’s form input before it is submitted eliminates the wasted time.
Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.
If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.