× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: CGI Programming
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Mon, 20 Dec 1999 11:31:58 -0600

If your web page that is calling the CGI program uses the GET method, you'll
have QUERY_STRING available to your program using the GetEnv API without
doing anything.  Most other environment variables are just there for the
taking, so to speak.

For CGI programming, you should be using the xxxENVVAR commands.  You should
use the QtmhGetEnv (what I call GetEnv) API.  Then you use the QtmhCvtDB API
to convert them to usable data.  

As stated before, an alternative to the GetEnv then CvtDB method is to use
the QzhbCGIParse API.

They're not dumb questions...  I just hope this makes sense.  ;)

Bradley V. Stone
BVS/Tools - www.bvstools.com
Netshare400 - www.netshare400.com

> -----Original Message-----
> From: Gade_R_Reddy@consecofinance.com
> [mailto:Gade_R_Reddy@consecofinance.com]
> Sent: Monday, December 20, 1999 10:47 AM
> To: RPG400-L@midrange.com
> Subject: RE: CGI Programming
> 
> 
> 
> Does the Query_String variable is created automatically by 
> the CGI program
> Or do i have to add by using ADDENVVAR command??. How do i create a
> variable???.
> 
> When would we use these commands ADDENVVAR, CHGENVVAR,WRKENVVAR.???.
> 
> Sorry to ask such dumb questions.
> 
> Thanks.
> Gade.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.