Search results for "css"
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.
“I want a website. It will be cutting edge visually impressive. It will have a wealth of information available. All of our brochures, a full directory of employees, and a shopping cart. I don’t want it the user to have to scroll all over the place though!”
Ever hear this from a client describing their vision? Somewhere along the line having to scroll for information started to bother people. Scrolling isn’t the make or break of a page. Use it to your advantage, and you’ll have a site that seems almost intuitive.
Photo by everdred
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.