CGI

by on October 10th, 2007

Examples of printing HTML in CGI scripts.

{ read more }

by on October 10th, 2007

Writing HTML in CGI script is pretty easy. Try the following CGI script.

{ read more }

by on July 8th, 2007

A CGI is simply a program that is called by the webserver, in response to some action by a web visitor. This might be something simple like a page counter, or a complex form-handler. Shopping carts and e-commerce sites are driven by CGI programs. So are ad banners; they keep track of who has seen and clicked on an ad. CGI programs may be written in any programming language; we’re just using Perl because it’s fairly easy to learn. If you’re already an expert in some other language and are just reading to get the basics, here it is: if you’re writing a CGI that’s going to generate an HTML page, you must include this statement somewhere in the program before you print out anything else:

{ read more }