[ic] $ENV{QUERY_STRING} ?

Orko interchange-users@interchange.redhat.com
Thu Mar 21 18:27:01 2002


Thanks Ed.  Found it and it works like a charm ;-)

-- orko

On Wed, 2002-03-20 at 14:02, Ed LaFrance wrote:
> At 01:39 PM 03/20/2002 -0800, you wrote:
> >Is there some way other than to loop through the $CGI hash to get the
> >full query string for a page?  I need to record tags that are going to
> >be passed to me and would prefer if the string stayed exactly the same
> >as it was when the cart homepage was called.  So for instance, if they
> >came in with:
> >
> >https://www.store.com/catalog?track1=foo&track2=bar&other=stuff
> >
> >I would want to store in a variable on the index page the string:
> >
> >track1=foo&track2=bar&other=stuff
> >
> >*not* something like:
> >
> >other=stuff&track2=bar&track1=foo
> >
> >The reasoning behind wanting to have it this way is fairly involved and
> >not relevant to the problem, so I won't go into that unless someone asks
> >me. ;-)
> >
> >Any suggestions?  I have already noticed that the $ENV{QUERY_STRING}
> >variable is not set (or I can't seem to get to it) in a [calc] or a
> >[perl] tag.  A [dump] shows the %ENV hash is there and has the
> >$ENV{QUERY_STRING} set to the correct string, but there doesn't appear
> >to be a way to get to them.
> >
> >Thanks in advance,
> >
> >-- orko
> 
> Try the [env] usertag I wrote some time ago; search the archives for 
> 'Usertag [env]' to find the code, I don't have it at my fingertips right now.
> 
> - Ed L.
> 
> 
> ===============================================================
> New Media E.M.S.               Software Solutions for Business
> 463 Main St., Suite D          eCommerce | Consulting | Hosting
> Placerville, CA  95667         edl@newmediaems.com
> (530) 622-9421                 http://www.newmediaems.com
> (866) 519-4680 Toll-Free       (530) 622-9426 Fax
> ===============================================================
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
> 
> 
> 
> 
> 
> 
-- 
Office: (360)697-1603
  Cell: (360)271-0796