1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is it possible to display referring url in an iframe?

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

  1. mightybh

    mightybh Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 27, 2008
    Messages:
    1,029
    Likes Received:
    1,714
    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!