Reply to Frames alternative?

Your name:

Reply:


Posted by UKuser on 08/20/07 10:08

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация