Posted by Jerry Stuckle on 08/20/07 12:13
UKuser wrote:
> 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
>
Try alt.html. This has nothing to do with PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|