CGI Programming 101: Chapter 6: Reading and Writing Data Files

Full text for this chapter may be found here.

The text and programs here are from the first edition of CGI Programming 101. This has been replaced by the 2nd edition; please click here to view the updated material from the 2nd edition.

Name Description
survey.html Survey Example
survey.txt Modified survey.cgi from Chapter 5 (source code)
surveysumm.txt Survey Summarizer (source code)
surveysumm.cgi Survey Summarizer Example

All text and scripts are excerpted from CGI Programming 101, and are copyright © 1999 by Jacqueline D. Hamilton. Unauthorized reproduction of this material is prohibited.


1/20/2000: changed surveysumm.cgi to strip HTML tags out of the comments entered on the survey form. Inserted text is as follows:

You may prefer to remove the tags before writing to survey.out in the survey.cgi itself, however that means the data itself will be harder to read. By removing the tags in the summary cgi, that preserves the data as entered by the surveyees, while making it readable (and unhackable) on the summary page.


Table of Contents | Order the Book | CGI101 Home