Solved

SSI for common navigation

Posted on 2000-03-05
6
206 Views
Last Modified: 2010-03-05
I have a SSI that includes a cgi that prints out a common navigation bar to all pages.  I wanted to add a little graphic that will display what section the SSI is being called from, but how can I tell?  There is no ENV variable for the calling page... of course SCRIPT_NAME displays the name of the cgi and not the SHTML page that included it.  Any way for me to tell within this CGI which page is calling it?
0
Comment
Question by:georgia
6 Comments
 
LVL 2

Expert Comment

by:sanek
ID: 2585971
Hmm... what does $ENV{'HTTP_REFERER'} variable equal to?
0
 

Author Comment

by:georgia
ID: 2586002
It is blank....  I assume it would refer to the page that I came from and not the one that called the script because it is blank when I just use the URL.
0
 

Accepted Solution

by:
powerlord earned 50 total points
ID: 2586297
How about $ENV{'REQUEST_URI '} ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:sanek
ID: 2587003
Wierd...
I see at SCRIPT_FILENAME calling page and not CGI address. How do you execute CGI
with <!--#exec cgi=...--> or <!--#include virtual=...-->
Try to use include, it's better
0
 
LVL 3

Expert Comment

by:guadalupe
ID: 2587421
This is a total workaround but what about passing the argument to the script.  Ex:

script.pl?caller=callinmg_page.htm

Then you just print out the variable $caller.

It's not the greatest but if your $ENV variables truly can't help...
0
 

Author Comment

by:georgia
ID: 2588048
That got it!  Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now