Hour 7. Validating User Input

One of the most common tasks required of CGI programs is validation of user input. Whether you’re taking an order online, allowing a user to subscribe to a mailing list, or enabling the user to enter stock symbols to look up a quote, it’s necessary to verify that the user entered all the required information in the form, and that the information entered is properly formatted.

There are a number of techniques that can be used for form validation, and in this hour, I’m going to cover some of the most effective ones. Over the course of this hour, you will learn

  • How to use JavaScript to validate form content

  • How to design forms that require less validation

  • How to design applications that efficiently incorporate form validation ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.