Summary

A large chunk of the CGI programs on the Web are used for one thing—processing form input. The objective of this hour was to provide you with a basic architecture that will work for the vast majority of forms processing scripts, and to explain how you can build data validation code into those scripts. When you write CGI programs, especially ones that will be gathering data that will be stored permanently, it’s important to make sure that the data that’s entered is valid. One tool that you can use to create expressions that will validate a wide variety of data is regular expressions. This hour contained a brief explanation of some regular expression functionality, to give you an idea of how it can be used.

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.