× 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.



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.
>
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.