alison@ut wrote:
> I have a page (not on my server) that links to a page on
my server.
>
> This URL has several variables that I want to grab and
use on my page. The
> URL looks like this:
>
>
http://www.somedomain.org/test.cgi?id=ABC&isbn=1234&volume=82
>
> By using cgi.HTTP_REFERER I am able to display the URL,
but I am having
> trouble parsing out the variables to use later on the
page.
>
> How do I "grab" the values of id, isbn, and volume from
this URL?
>
> Thank you for your help.
> Alison
>
Most of us would use url.id, url.isbn and url.volume. You
could also
use url['id'], url['isbn'] and url['volume'] if you like on
any version
of ColdFusion released this century.
<cfdump var="#url#"> may also be informative.
I.E. you are working to hard if you are trying to parse
cgi.http_REFERER. ColdFusion has already done this and dumped
everything into the URL structure. Of course, if I was going
to use a
CGI variable, I would use cgi.query_string and parse as
nested lists.
But is 'test.cgi' a ColdFusion template?