Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 502563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:18:15+00:00 2026-05-13T06:18:15+00:00

Okay, here is my situation. I have a page, index.php, which is the mainsite

  • 0

Okay, here is my situation.

I have a page, index.php, which is the mainsite (flash site)

I have another page called iframe.php which contain iframe of index.php

Another page, test.php. Inside have 2 links, 1st link is directly to index.php, another link is to iframe.php

I tested:

  • I click the 1st link, when i trace/echo the HTTP_REFERER, it displays “test.php”, but

  • I click on 2nd link, when i trace/echo the HTTP_REFERER, it displays “iframe.php”.

Why it display “iframe.php”? Is HTTP_REFERER does not work on iframe??

Is there anyway to get the “test.php” when i click on second link?

Source code for :index.php

<html>
<head> // Some headers information
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
    <?php
if(!empty($_SERVER['HTTP_REFERER'])){
?>
    flashvars.link       =  '<?php echo $_SERVER['HTTP_REFERER']; ?>';
<?php
}
?>
var params = {};
var attributes = {};
swfobject.embedSWF("main.swf, "content", "100%", "100%", "9", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
    <div id="content">
    <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
        </a>
    </div>
</body>
</html>

Source code for iframe.php

<html> headers tag
...
<body>
<center><iframe src="index.php" mce_src="index.php" frameborder="0" height="500" scrolling="no" width="500"></iframe></center>
</body>
</html>

Source code for test.php:

....
<a href="iframe.php" target="_blank">This is Iframe</a> <br><br>
....
<a href="index.php" target="_blank">This is normal link</a> <br><br>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:18:15+00:00Added an answer on May 13, 2026 at 6:18 am

    In either case you’re seeing the output of index.php. Here’s why:

    Scenario 1)

    When you hit index.php from the link in test.php, it loads index.php (with test.php as the HTTP_REFERER).

    Scenario 2)

    When you hit iframe.php from the link in test.php, it loads iframe.php which internally loads index.php in the <iframe> tag (with iframe.php as the HTTP_REFERER).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay so here's the situation. I have this page of data. After the data
Okay, here a situation: 1) I have a Panel called panel1 that consist one
Okay, so here's the situation: I have an application which uses SDL and OpenGL.
Okay, here's the situation. I have two NSManagedObjects called Store and Aisle . There
Okay here's my situation. I have the following branches development development-kirby (270 commits ahead
Okay, here's the situation: We have a table of about 50 columns (created by
Okay, here's my situation. I have a WPF app that I have created that
Edit: Here's a Fiddle of the situation. Okay, so I'm building a web page,
Okay here is the scenario! I have a Person object which has an Address
Okay here's the situation. Net 4 WPF NO Silverlight. I have several Views that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.