CGIDEV2 Question
"Art Tostaine, Jr." <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CACftfu5weGhvHBTEuO__Dh26ai-QJGc_nWUnXtZ5TPEV2vfPrw@mail.gmail.com> |
I Want to receive data from a POST that's sent from a credit card company.
I started with the example program getpost. It writes output HTML so you
can type in sample post data and then it returns to show you it processed
it.
When I strip out the output and just read the input with these two lines, I
get the correct number of variables received, but nothing in xinput.
// Get browser input
nbrVars=zhbgetinput(savedquerystring:qusec);
xInput=zhbGetVar('xInput');
Do I need something else to get the input data?
My complete program is simple, just trying to make sure I can get the input
string.
ctl-opt dftactgrp(*no) Actgrp('GETPAYZR');
/copy CGIDEV2/qrpglesrc,hspecs
/copy CGIDEV2/qrpglesrc,hspecsbnd
/copy CGIDEV2/qrpglesrc,prototypeb
/copy CGIDEV2/qrpglesrc,usec
/copy CGIDEV2/qrpglesrc,variables3
*
xInput s 100
// Get browser input
nbrVars=zhbgetinput(savedquerystring:qusec);
xInput=zhbGetVar('xInput');
return;
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.