Results 1 to 2 of 2

Thread: redirect working just outside iframe

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question redirect working just outside iframe

    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!

  2. #2
    Join Date
    Mar 2010
    Posts
    28
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •