The most common use of CGI on a Web site is to automate forms. When you write a form, it will not work unless there is a CGI program running on the back end to make it work. A CGI script that is the back-end for a form must be able to decode the form data, and then do something with it.
For this article, I will show you how to write a simple form, and how to create a CGI that parses the form data and then sends the data via email to you.

