Example programs for Appendix A

Because IE will not transfer files with estension .cgi or .pl, the example CGI script and Perl program are stored without extension. Be sure to add the .cgi extension (or change the .htm or .txt extension to .cgi or .pl) when you save the CGI script and Perl program in your local folder. Also, be sure you have selected All files for the value of Save as type: in the download.

Right click on the anchor and select 'Save Target As ...' to download the file.


The simple HTML document test.html
Put this in htdocs or a subfolder thereof.

The hello.pl Perl program to access via your browser (http://localhost/cgi-bin/hello.pl).
Put this in your cgi-bin folder.

The HTML document with the form
Put this in your htdocs folder.
The CGI script fielding the request
Put this in your cgi-bin folder.