Jump to content

HTTP_REFERER with iFrame


evlj

Recommended Posts

Hi there, i have 3 pages:

 

1. index.php

2. iframe.php

3. output.php

 

iframe.php is within index.php and in iframe.php there's a form with input fields. Form is including output.php for sending the information. Whenever someone come to index.php, my HTTP_REFERER get's reffer of index.php instead of previously visited page (before my index.php)... how can i fix this? Please help!

Link to comment
Share on other sites

what do you meen you "have to use it"? you can access remote webpages with php and load them into a div on your own page using file_get_contents() and some basic css :

 $header = <<<HTML_HEAD
<html><head><title></title>
<style type="text/css">
#container_main{
width:400;
height:400;
background-color:#bbbbdd;
}
#container_form{
width:350px;
height: 350px;
margin-top:25px;
margin-left:auto;
margin-right:auto;
overflow:auto;
float:left
background-color:#999977;
}
</style></head>
HTML_HEAD;
$form = file_get_contents('http://www.yourFormPage.com');
echo $header
echo"<body><div id='container_main'>You Form Sir:<div id='container_form'><pre>$form</pre></div></div></body>";

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.