Hi Bob.  I've heard of others having this problem.  And to
tell you the truth, I don't even think you're supposed to
able to pass parms like that using exec SSI, even one.  But
the docs do say you should be able to.

According to some Apache users, you're supposed to be able
to use the format:

cgi="/cgi-bin/pgm arg1 arg2 etc..."

But I've never tried it, and it doesn't help you set the
Query String variable.

Also, most HTTP servers don't allow allow parms on an EXEC
CGI, and you should be able to use include virtual with a
CGI path and parms, but last I checked you can't run CGI
with include virtual on the classic server.

Using include virtual instead of Exec is one nice feature
Apache should have over classic.

Brad



On Mon, 25 Feb 2002 15:20:17 -0600
 "Bob Cozzi \(RPGIV\)" <cozzi@rpgiv.com> wrote:
>
> I've been using Service Side Includes (SSI) for a while
> now, but I have
> a new requirement, and the server doesn't like it.
>
> Usually I code stuff like this to load up a drop-down
> listbox with a
> list of things (such as STATES, or Names), and it works
> pretty good.
>
> <!--#exec cgi="/mbrs/msgetevt.pgm?FMT=2" -->
>
>
> But now I have a new requirement, and have to pass in two
> parameters
> instead of the one FMT parameter. Like this:
>
> <!--#exec cgi="/mbrs/msgetevt.pgm?FMT=2&ACCTNO=3271" -->
>
> The problem is, the 2nd parameter, &ACCTNO=3271 is
> causing the SSI to
> crap out so I figure I've got the wrong syntax.  The
> error is:
>
> <!--[an error occurred while processing this directive]
> VARREF was not
> found: "&CID=12445"."-->
>
>
> Any ideas?
>
> FYI: I'm using CGIDEV2's zhbGetVar() to read each
> parameter. Could it be
> in that routine?
>
>
>
> Bob Cozzi
> cozzi@rpgiv.com
>
>
> _______________________________________________
> 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.
>

Bradley V. Stone
BVS.Tools
www.bvstools.com


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.