Frames alternative?



Is there a way that I can load a page within a page and still have
cookies/javascript etc working?

This is my code thus far:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="content-type" content="text/html;
charset=windows-1250" />
<link rel="stylesheet" href="css/bbb1.css" type="text/css"
title="Main style" />
<link rel="stylesheet" href="css/top-content.css" type="text/css"
title="Main style" />
<title>Website</title>
</head>
<body>

<div style="background-color:#02A59E;display:block;float:left;width:
100%;height:43px;">
<p>
<span style="float:left;padding-left:20px"><img src="images/link-
logo.jpg"></span>

<h1 style="float:left;margin-left:15px;line-height:43px;vertical-
align:bottom">
<a href="javascript: self.close ()" target="_top"
style="color:white;font-size:14pt">Return to our website</a>
</h1>

<span style="float:right;width:10%;line-height:43px;vertical-
align:bottom;color:white">
<a href="http://<?php print"$site";?>" style="color:white">Remove
Frame</a>
</span>
</p>
</div>

<div style="margin-top:20px;clear:both">
</div>
</body>
</html>
<?php
$content = file_get_contents("http://$site";); // where site is a
www.anyname.com

echo $content;
?>

This will load the page, but as text and/or disable any cookies or
javascript and thus showing the user any external error pages asking
for cookies to be enabled.

I've tried standard iframes and frames but in IE these have cookies/
javascript disabled. I'm trying to find a PHP 100% equivilent to
frames.

Thanks

A

.



Relevant Pages

  • Frames alternative?
    ... Is there a way that I can load a page within a page and still have ... <!DOCTYPE html ... for cookies to be enabled. ... I've tried standard iframes and frames but in IE these have cookies/ ...
    (alt.php)
  • Re: Frames alternative?
    ... <!DOCTYPE html ... for cookies to be enabled. ... I've tried standard iframes and frames but in IE these have cookies/ ... I'm trying to find a PHP 100% equivilent to ...
    (alt.php)
  • Re: Frames alternative?
    ... <!DOCTYPE html ... javascript and thus showing the user any external error pages asking ... for cookies to be enabled. ... I've tried standard iframes and frames but in IE these have cookies/ ...
    (alt.php)
  • Re: Pages not loading
    ... party cookies too... ... If you have Zone Alarm Pro, go to the "Privacy Tab", Main, Options and open ... So i tried opening these pages in IE but the whole website doesn't load. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Is this the worst commercial site on the web..
    ... The piccies load almost immediately then ... I can see it's loading cookies/mini basket from the task ... > security but I ain't changing that for any online company. ... I have cookies banned and it is just trying over ...
    (uk.people.silversurfers)