The most common use of CGI on a website is to automate forms. When you write a form, it will not work unless there is a 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 HTML form, and how to create a CGI that parses the form data and then sends the data via email to you.
This article is part of the HTML Forms Tutorial