CGI script for email address form to MySQL database

This TechSoup user wants add a simple CGI script to a Website to create an email address form that will be added to a mailing list database. The user is using a MySQL database on a hosted server. Can anyone help with this or point towards a ready-made CGI script that will do the job?

Know the answer? Post it here and let us know in your answer if you saw the question through the RSS feed.