My script needs to know what URL the browser requested so it can make one of the notebook tabs darker.
For instance, if a user clicks on the notebook tab labeled HOME, the home page will be displayed and the SSI include that created the notebook tabs made the HOME tab a darker color. The cgi script needs to know what URL was requested so it can determine which tab to make a darker color.
In my script I tried getting $ENV{QUERY_STRING} but it didn't work. After looking into this a little more it appears that $ENV{QUERY_STRING} is only available when processing input from a form. My app is not a form so I need to figure out a way for this script to determine which URL the browser requested.
My O'Reilly book on CGI programming isn't very clear on this.
<a href="http://www.some.com/cgi-bin/some.cgi?home">A link</a>
In this case, some.cgi would see "home" as the value of $ENV{'QUERY_STRING'}. I guess you could use this as the basis for your scripts, so long as you coded all your links in this fashion.
Simon
Throw that in a file and you will get all of the environment variables served up by your host, as they indeed differ from machine to machine and even domain to domain. But PLEASE delete it after you're done with it as it can be used nefariously if found.