Lesson 13. Form Validation
In this lesson you will learn some techniques for validating form input in a user-friendly way.
The principles of validating user-submitted input are fairly straightforward: Just check each item in $_POST in turn and make sure it matches a set of criteria. However, making sure the user is able to correct any mistakes and resubmit the form with a minimum of fuss presents a bit more of a challenge.