CGI Test Scripts
Test Scripts
A few test scripts are available that demonstrate what input data is
available to a script. Below are three examples of essentially the same
script. The only difference is the language in which the script is written.
- CGI Test - ILE C/400
- An ILE C/400 script that displays the variables that are available to
a CGI script. View the script
source.
- CGI Test - RPG/400
- An RPG/400 script that displays the variables that are available to
a CGI script. View the script
source.
- CGI Test - REXX/400
- A REXX/400 script that displays the variables that are available to
a CGI script. View the script
source.
The following are CL sample scripts that receive input and redirect to
a URL that performs a query on a customer file using the inputted data.
- This CL script receives input through a parameter
(view script source):
- /cgi-bin/clsamp1?A
/cgi-bin/clsamp1?I/Net
- This CL script receives input through a form variable
(view script source):
- /cgi-bin/clsamp2?NAME=A
/cgi-bin/clsamp2?NAME=I/Net
Fun Scripts

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