|
That's exactly what I am doing, but it doesn't seem to work. Have you done this or are you quoting the manuals? the only reason I ask is anyone I've talked to who has tried it has given up. There are other ways to do it, but supposedly this should remove a step. What do I see in the target buffer? Some garbage, then the field name preceded by FORM_ then the value, this repeated for each form field. The manuals state that using -POST is like using -init then -form. Well, I couldn't even get -form to work. I did get -init to work which returns a string that I can use to put to the envirnoment variable with QtmhPutEnv. Then I can use -value field to retrieve the data. Very simple. But, -form doesn't seem to work, which means -POST doesn't work. Here's what the manual says -form will do. "Parses QUERY_STRING as form request. The field names will be set as environment variables with the prefix FORM_. Field values are the contents of the variables." So, does this mean I can use QzhbCGIParse with -init FORM_field to retrieve the values, or does it mean I should use QtmhGetEnv, retrieving environment variables named FORM_field? That's why I asked IBM, because I figure they wrote it, they should know if Im simply interpreting the docs wrong (not hard to do... just have a look at this one) or if it doesn't work as advertised. Shouldn't be a very tought question to answer. Brad > -----Original Message----- > From: bvining@vnet.ibm.com [mailto:bvining@vnet.ibm.com] > Sent: Tuesday, December 12, 2000 11:06 AM > To: RPG400-L@midrange.com > Subject: QzhbCGIParse API. > > > Brad, > > What type of problem are you having? After a POST, you should be able > to call QzhbCGIParse with a command string of -POST and then parse > through the CGII0200 format to find the various variable name/variable > value pairs. > > What are you seeing in the Target buffer? > > Bruce > > > > >The comment about the manuals was just that, a comment. I > was asking for > >assitance on the use of an API because it doesn't seem to work "as > >advertised". > > > >After spending weeks on CtoN I figured this one would be a > breeze. Guess > >not. > > > >BradLEY ;) > > > >> -----Original Message----- > >> From: bmorris@ca.ibm.com [mailto:bmorris@ca.ibm.com] > >> Sent: Friday, December 08, 2000 11:54 AM > >> To: RPG400-L@midrange.com > >> Subject: Challenge for IBM. QzhbCGIParse API. > >> > >> > >> > >> >Date: Thu, 7 Dec 2000 15:52:32 -0600 > >> >From: "Stone, Brad V (TC)" <bvstone@taylorcorp.com> > >> > > >> >Barb, Hans, et al... > >> > ... > >> >What I would like is an example of how you are supposed to > >> use the -POST > >> >command. Even if it is something as simple as "after a POST, your > >> >processing program calls QzhbCGIParse with a command string > >> of -POST, and > >> >after that you should be able to get your data by > (whatever you would > >> do)." > >> > ... > >> >So, Barb, Hans, could you pass this along to someone who may > >> be able to > >> >help? Solve a mystery for us. :) > >> > >> Brad, it would be better if you followed the normal procedure for > >> contacting IBM about the manuals. See the front of each > manual (How > >> to Send Your Comments) for specific instructions for contacting IBM > >> by email. > >> > >> Maybe someone else in this mailing list knows the answer > >> anyway, although > >> the Midrange-L mailing list would probably be better. > >> > >> Barbara > > > > > +--- > | 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 > +--- > +--- | 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 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.