Server-side validation incorporates code validation into a form handler. NET application on the server that provides the functionality that your form needs for processing after a customer has submitted it.Because the code is stored on the server, server-side validation requires a roundtrip to the server.
Different browsers may mark the input box in some way (Firefox 4 Beta adds a red box-shadow by default), display a warning (Opera) or even prevent the form from being submitted if this field has no value.For a more detailed introduction to HTML5 form validation you can find some great articles linked under References below.In this article we intend to present only a number of simple examples to get you started, covering the basic form elements.When the validation rules are finally satisfied and the form submission is successful, the popup error message(s) will cease and depending on your Internet browser you may encounter a "404 File Not Found" or similar message when the form is submitted due to the empty "action" attribute in the tag.On the other hand, it may appear that nothing happens at all when the form submission is successful. This simple video will finalize everything we have done so far by allowing us to give feedback to our users when our form validation goes wrong. Want to learn new things and hear my programming-related stories?