evlj Posted March 14, 2012 Share Posted March 14, 2012 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 More sharing options...
Muddy_Funster Posted March 14, 2012 Share Posted March 14, 2012 stop using iframes? Link to comment https://forums.phpfreaks.com/topic/258911-http_referer-with-iframe/#findComment-1327332 Share on other sites More sharing options...
evlj Posted March 14, 2012 Author Share Posted March 14, 2012 I have to do it, as it's on different hosting... How can i fix it? Is there an solution for this? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/258911-http_referer-with-iframe/#findComment-1327342 Share on other sites More sharing options...
Muddy_Funster Posted March 14, 2012 Share Posted March 14, 2012 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 https://forums.phpfreaks.com/topic/258911-http_referer-with-iframe/#findComment-1327353 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.