|
Peter, There could be a few things causing this - the first thing I notice in your html is that you do not name the input field. that line should be more like this: Order Number: <input type="text" name="ORDERNUM"> (ordernum is the name in your receiving rpg/cgi program) After that, if that does not take care of it, do you have a file set up for the reading in, or are you paraphrasing the data stream, also your config must be off, or your understanding is off as the form action does not need to be so detailed. (just the /cgi-rpg/fd003r would suffice, and as you have a question mark after the "call" it appears you are combining methods for sending data to your program; I do not know if you can or not, but I never do, I go with one method or the other for the web page at hand. The post does not require the ?, the get method does. it depends on how your rpg is coded and which api you are using. Do you have the CGIDEV2 library on, some examples, but as for myself - Brad Stone's book was more clearly written - Another thing I did "a lot of" was to find pages I liked, and looked at the html source to see "how'd they do that", and then implemented that html into my cgi code. HTH Mark -----Original Message----- From: web400-admin@midrange.com [mailto:web400-admin@midrange.com]On Behalf Of Peter_Vidal@pall.com Sent: Tuesday, June 04, 2002 1:58 PM To: web400@midrange.com Subject: [WEB400] Simple HTML program sending parms to an AS400 pgm Hi guys! 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? Regards, PALL Corporation Peter Vidal Senior System Analyst _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/web400 or email: WEB400-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
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.