kumais
Technical User
- Apr 27, 2007
- 4
Hi,
I use getenv('HTTP_REFERER') in an iframe to keep track of the referring URL (of the page loaded in the frame). It works fine in Firefox but in IE7, it reads the URL of the parent window instead of the iframe page.
Just to make it clear:
e.g.
I have a page
which contains an iframe with something like <iframe src = "
Now somebody clicks on a link in the iframe which loads another page within the same iframe. Say this page contains the following code:
$ref = getenv('HTTP_REFERER');
In Firefox,
echo $ref;
returns
but in IE7, it returns
Does anybody know of a workaround to make it work properly in IE7?
Thanks.
I use getenv('HTTP_REFERER') in an iframe to keep track of the referring URL (of the page loaded in the frame). It works fine in Firefox but in IE7, it reads the URL of the parent window instead of the iframe page.
Just to make it clear:
e.g.
I have a page
which contains an iframe with something like <iframe src = "
Now somebody clicks on a link in the iframe which loads another page within the same iframe. Say this page contains the following code:
$ref = getenv('HTTP_REFERER');
In Firefox,
echo $ref;
returns
but in IE7, it returns
Does anybody know of a workaround to make it work properly in IE7?
Thanks.