FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
January 01, 2002

Writing CGI Scripts in REXX (Web Techniques, May 1996)

(Page 15 of 23)

Writing CGI Scripts in REXX, Listing 3 (Web Techniques, May 1996)

Web Techniques Magazine

May 1996

Volume 1, Issue 2





Writing CGI Scripts in REXX



Listing Three

StdinFile='/tmp/stdin'_GETPID()/*Get unique name*/

/*_GETPID() provides the process Id in Uni-REXX*/

SAY PrintHeader(); SAY HTMLTop('testinput')

/*********************************************** */

/*Read input from the various sources. */

/*Note that we preserve or save */

/*input in case we need to send it to another */

/*script. If so we can restore the stdin for the */

/*the called command by using the REXX command: */

/*ADDRESS UNIX script '<' StdinFile */

/*********************************************** */

PARSE ARG Parms/*QUERY_STRING input for non FORMS*/

SAY 'Command line parms="'Parms'"'

SAY '
Standard input="'ReadPost(StdinFile)'"'

SAY '
PATH_INFO="'GETENV('PATH_INFO')'"'

SAY '
QUERY_INPUT="'GETENV('QUERY_STRING')'"'



( back )


Copyright Web Techniques. All rights reserved.

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK