Free CGI Resources

How CGI Scripting Works
A basic introduction to CGI.

CGI Tutorial
A short tutorial from the University of Leeds that explains CGI scripts, demonstrates a simple Perl script, CGI environment variables and forms. Appears to be all Perl and includes a few exercises.

The CGI Bin
5 tutorials on CGI form handling, hit counting, cookies and Server Side Includes.

CGI Programming 101
The first six chapters from a book on CGI programming are available for free online or in .pdf format. Sample chapters cover getting started (writing scripts, uploading, etc.), Perl Variables, CGI Environment Variables, Processing Forms, Advanced Forms, and Reading & Writing Data Files. Source code from remaining chapters is also available.

A guide to HTML and CGI scripts
This site has some basic HTML stuff and examples of forms as well as an example of calling a CGI script file, decoding data sent to a CGI script and a script to record users to a web page. All the scripts appear to be in C++.

The Most Simple Intro to CGI
This site has an explanation of how CGI works illustrated with some cute graphics and has an example first script in Perl that processes form data and writes the form input back to the browser.

CGI for the Total Non-Programmer
Short tutorial on the basics of creating CGIs with Perl on a Unix platform and includes a template for running scripts on a pc or mac. Covers the basics of Perl, hit counting, and guestbooks. The main page says processing passwords is covered, but I didn't see it when I was there.

CGI Made Really Easy
The title is a little optimistic, but this site includes a brief introduction has some sample scripts for "Hello World" and echoing form input in both Perl and C. Also a mailer script in Perl and some security inforomation and useful CGI environmental variables on the footnotes page that you can find from the links at the bottom of the main page.

The CGI Directory:
This is an extensive CGI directory with over a thousand scripts and a tutorials sections for beginner and advanced as well as links to SSI (Server Side Includes) tutorials. The focus appears to be on Perl, naturally enough, but I only had time to sample a few of the many scripts.

CGI City
This site features an online Perl reference, web development articles, apache & MySQL installation instructions and a series of "How Do I" articles that are short how-to pages with example code in Perl "written with the beginner in mind."

CGI Programming FAQ
Frequently asked CGI questions.

CGI Programming on the World Wide Web
This book is out of print, but it has been made available online through the O'Reilly Open Books Project.

CGI Programming FAQ
CGI Programming FAQ (mirror of above)

Tek-Tips CGI Forum
CGI forum.