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
https://forums.phpfreaks.com/topic/258911-http_referer-with-iframe/
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>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.