Tagged ‘Validate’
How to Validate a Form Using PHP Part 2: Streamline Using Arrays
- Sam Dunn
- Dec 11, 2008
- 60 Comments
- Tutorials
We’ve touched upon the basic elements of form validation and error messages in part 1 of this series, which outlines a relatively static method identifying errors and validating a form. In this edition we are going to make the elements we began with more dynamic and reduce the amount of script required to do so using arrays.
How to Validate a Form Using PHP Part 1: Complete with Error Messages!
- Sam Dunn
- Dec 02, 2008
- 59 Comments
- Tutorials
Having a site visitor fill out a form is the primary way to gather information. Forms are the main line of communication with anyone that visits your site, so taking the time to make sure users fill them out correctly is key. Using PHP, we are able to ensure that all fields are properly filled out before submission, with required adjustments being called to attention through the use of error messages.