Example of using SQR through CGI

Note: the form and link below are not actually connected to an active SQR program, but this page can be used a model for installing the sample programs in your own environment.

Post method using a form

This form will be submitted with the POST method. The name attribute for the input tags is what the SQR program will use to reference the values submitted in the form. They are case sensative. This form calls an SQR program that just echos back the inputs (Hint: Green is a good color.).
Name
Age
Favorite Color

Get method using a link

This is an example of a GET method CGI call. Notice the Special characters in the values for the parameters. This is necessary because ?, +, = and & are treated specially in the href attribute. This SQR program lists all parameters passed to it. It returns output in PDF format.
/cgi/cgi-lib/example2.sh?VAR1=Do+you+like+A%26W+Root+Beer%3F&VAR2=1%2B1%3D2