|
The problem was solved! I missed two things: The method to use should be "GET" and I should give a name to the INPUT Field such as StartAtOrd (which I decided to use because is was already defined on my RPG pgm) Thanks to Bob for his explanations and to everybody for your advices and tips. PALL Corporation Peter Vidal Senior System Analyst "Bob Cozzi" <cozzi@rpgiv.com> To: <rpg400-l@midrange.com> Sent by: cc: rpg400-l-admin@mi Subject: RE: Simple HTML program sending parms drange.com to an AS400 pgm 06/04/2002 04:53 PM Please respond to rpg400-l QtmhGetEnv only recieves the URL-encoded string when METHOD="GET", not POST. Change the method to GET > -----Original Message----- > From: rpg400-l-admin@midrange.com > [mailto:rpg400-l-admin@midrange.com] On Behalf Of Peter_Vidal@pall.com > Sent: Tuesday, June 04, 2002 3:46 PM > To: rpg400-l@midrange.com > Cc: web400@midrange.com > Subject: Simple HTML program sending parms to an AS400 pgm > > > "The problem is that you don't have a name for the INPUT > field. As Mark suggested, you should name it something like > NAME="ORDNBR", then when you query the string you'll be able > to locate it by that name. Otherwise.... I'm not sure what > will happen, probably something like "fd003r?=12345" gets passed." > > I change my code to be: > > <html> > <body> > <FORM action="http://pacnet/cgi-rpg/fd003r" method="post"> > <P> > Order Number: <INPUT type="text" name="StartAtOrd"><BR> > <INPUT type="submit" value="Send"> > <INPUT type="reset"> > </P> > </FORM> > </body> > </html> > > This StartAtOrd name is the same as the RPG program has. I > am still with the report headings but no data. I am using > the API QtmhGetEnv but the data parameter is receiving > NOTHING. I am running out of clues... > > > PALL Corporation > Peter Vidal > Senior System Analyst > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) > mailing list To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.