I use frames to center my directory (including cgi-generated pages like search results), but I run into a problem when pages are sometimes called directly without their framesets. I want to use this simple code inside the head to reframe all 'body' pages when necessary, including cgi-generated pages:
Code Sample:
But the next step is the hard one. I need to somehow call the resulting frameset so that the body will be the page they just came from:
Code Sample:
<FRAMESET>
<FRAME NAME="left" SRC="left.htm">
<FRAME NAME="body" SRC="WHERE THEY JUST CAME FROM">
<FRAME NAME="right" SRC="right.htm">
</FRAMESET>
|
|
I thought I could do this using
Code Sample:
<!--#echo var='redirect_url'-->
or
<!--#echo var='HTTP-REFERER'-->
|
|
but this doesn't work since these seem to only be generated when a user clicks a link to the page, not by the javascript which results only in SSI generating (none)
Any ideas would be appreciated!
(I'm new to SSI and PHP as I couldn't use either on my old NT server.)
[This message has been edited by Jeff (edited 07-02-00@12:22 pm)]