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



>I have a small amount of code and what I want is to send an
>order number to a
>CGI-RPG program on the AS400 like:
>
><FORM action="http://pacnet/cgi-rpg/fd003r?"; method="post">
><P>
>Order Number: <INPUT type="text"><BR>
><INPUT type="submit" value="Send"> <INPUT type="reset">
></P>
></FORM>
>
>The program runs but the parameter (order number) that the
>program receives is a
>different one (garbage).  What I'm missing?

CGI doesn't 'connect' to a *ENTRY PLIST type of parameter.  There are
industry standard ways to read the 'stream' of parameters from the web form.
IBM have implemented these methods using APIs named QTHMRDSTIN, QTHMGETENV,
QTMHWRSTOUT and so on.  Read the Web Master's manual for some details on
these, or the RPG Redbook.  That's a bit of work to implement, but there is
an easier way.  Visit http://www.easy400.ibm.it and get a copy of the
CGIDEV2 library.  Mel Rothman has written a service program that automates
so many of the chores when dealing with this stuff.  Very cool.  I'm doing
beginner level stuff using the examples provided, and they've done a great
job.

Brad Stone has written a book that describes the workings of CGI and he has
a web site at http://www.bvstools.com
  --buck


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.