swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
    Related Concepts   Other Library Functions  
function   cgiGetQuery    

Library: omcgi - CGI programming support
Include: omcgi.xin

Declaration

  define function cgiGetQuery
    into modifiable stream query-shelf

Where:
query-shelf



Purpose

The cgiGetQuery function retrieves data sent to your program using either the GET or POST method, decodes the data, and puts the decoded data on a keyed stream shelf of name/value pairs. The key of the shelf item is the name of the data field, and the shelf item's value is the value of that data field. Declare the shelf you want the query-string values placed on as variable. For example:

     declare #process-input has unbuffered
     declare #process-output has binary-mode

     include "omutil.xin"
     include "omcgi.xin"

     process
        local stream input-data variable

        cgiGetQuery into input-data

For your CGI program to retrieve the input data sent by the web server, you must declare #process-input as unbuffered. If you do not, on some systems your CGI program will hang.

      Related Concepts
   CGI programming with OmniMark
 
Other Library Functions
   cgiGetEnv
   cgiGetQuery
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:02 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.