CGI Script Survey Sample


This document is an example of a CGI script that automatically tabulates the results of an on-line survey. Other sample scripts are also available.

The following three scripts conduct a simple survey. Each script is written in a different language: RPG/400, ILE RPG/400, and ILE C/400. All three versions work on the same database. The only difference between the three HTML forms that call the scripts is the name of the script that gets called when the submit button is pressed.

Below is the same example done in three different languages. Executing the script will bring up an HTML form that will then POST a request to the script. Viewing the source will display a text view of the script source. NOTE: The output of these scripts contain lowercase letters and will not display correctly if the server is running under CCSID 5026.

You can also view the database directly that these scripts all work with. NOTE: You may need to refresh this page to see your entry if your browser has cached it.



Home | Sales | Support | © I/NET, Inc.