Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] QUERY_STRING in hyperlink

Expand Messages
  • John Zapp
    Charles, Can I append QUERY_STRING as a var to exec statement? If so how? Append like:
    Message 1 of 8 , Jun 16, 2004
    • 0 Attachment
      Charles,

      Can I append QUERY_STRING as a var to exec statement? If so how?

      <!--#echo var="QUERY_STRING" -->
      <!--#exec cgi="/cgi-bin/env.pl" -->

      Append like:

      <!--#exec cgi="/cgi-bin/env.pl?QUERY_STRING" -->

      John


      --- In perl-beginner@yahoogroups.com
      , "John Zapp" <jgzapp@u...> wrote:
      > Charles,
      >
      > Let me digest the article and see if there is a work around
      > suggested. Did you see one?
      >
      > Thanks,
      > John
      >
      >
      > --- In perl-beginner@yahoogroups.com, "Charles K. Clarkson"
      > <cclarkson@h...> wrote:
      > > John Zapp <mailto:jgzapp@u...> wrote:
      > >
      > > : Yes it works when passed directly:
      > > : <!--#exec cgi="/cgi-bin/env.pl?action=list&page=tx" -->
      > > :
      > > : and if passed directly like:
      > > :
      > > : http://mydomain.com/cgi-bin/event.cgi?action=list&page=tx
      > >
      > >
      > > That makes sense to me. I was unaware that unix Apache
      > > passed QUERY_STRING forward like that.
      > >
      > > This shows that QUERY_STTRING is passed to the shtml call,
      > > but fails to continue on to the cgi call.
      > >
      > > <html>
      > > <head>
      > > <head>
      > > <title>Foo Test</title>
      > > </head>
      > > <body>
      > > <!--#echo var="QUERY_STRING" -->
      > > <!--#exec cgi="/cgi-bin/env.pl" -->
      > > <a href="/foo.shtml?action=list&page=tx">foo.shtml</a>
      > > </body>
      > > </html>
      > >
      > > Unfortunately, IIS SSI is different from Apache SSI and does
      > > not expand variables in the cgi string*. So adding "?
      $QUERY_STRING"
      > > is not effective.
      > >
      > > * http://support.microsoft.com/default.aspx?scid=KB;EN-
      US;Q203064&
      > >
      > >
      > > HTH,
      > >
      > > Charles K. Clarkson
      > > --
      > > Mobile Homes Specialist
      > > 254 968-8328
    Your message has been successfully submitted and would be delivered to recipients shortly.