Is it possible to display referring url in an iframe?

Discussion in 'General Programming Chat' started by mightybh, Feb 18, 2012.

  1. mightybh

    mightybh Senior Member

    Joined:
    Feb 27, 2008
    Messages:
    1,029
    Likes Received:
    1,717
    Occupation:
    CEO
    Location:
    UK
    I tried

    <?php
    echo $_SERVER['HTTP_REFERER'];
    ?>

    As an iframe src and realized that won't work. I played around with javascript as well to no avail.

    Is there any way to display referring url in an iframe or equivalent?

    Thanks!