CGI Programming

Previous Next

Structure of Program Using POST Method

  1. The HTML Form is sent to the client. This Form includes all the named fields that the user will click, select, pull down, or type in the answers. The Form tag also contains the Method (in this case Post) and the Action (which is the URL to which all the input parameters are sent). In the case of the AS/400, this URL is your CGI application that runs in QSYS.LIB.
  2. The user selects the Submit button. The HTTP server routes the data to the CGI program, which places the named variables and values in Stdin. It then calls your CGI application which can do:
  3. When your application ends, whatever you wrote to stdout will be sent back to the Web client.

Previous Next

Agenda

CGP050