We can never rely on the data entered by users. Sometimes they might be ignorant about the application and thus they may be entering incorrect data unknowingly. At other times, some malign users may want to corrupt the application by entering inappropriate data into it. In either case, we need to validate the input data before storing the data for further processing.
By the end of this chapter, you will be able to:
- Explain the different types of validation
- Perform server-side validation using an example
- Perform client-side validation using an example
- Perform unobtrusive JavaScript validation using jQuery unobtrusive libraries