Log in

View Full Version : redirect working just outside iframe



fershira
07-19-2010, 12:05 PM
Hello,

My problem:
When the page is called outside the iframe, I would like redirect it to another page.

Eg: The page www.something.com/A.php has an iframe <iframe src="insideA.php"></iframe>
and when insideA.php is called outside the of page A.php - www.something.com/insideA.php - it should redirect to page B.php

Solution:)
I believe is a simple solution... But, I am not a developer, so maybe you can help me.
Please!

katierosy
07-22-2010, 06:23 AM
If you pass a secret key for the iframe url, this will help to find from where the request is coming to php page.
<iframe src="insideA.php?id=Atasdsa742348ahsdfKJedfds89873076asdf"></iframe>