knowj wrote:
[...]
Thats exactly what that does.
Hm... still doesn't work. It's doing absolutely nothing :queasy:
Here's the source of my scripts:
config.php
<?php
//size of frame and table
$size = 80;
//link to be displayed in title bar
$title = "www.bbc.co.uk";
?>
frame.php
<?php
require ("config.php");
$url=$_GET["url"];
?>
<title></title>
<body>
<table width="100%" height="<?php echo $size; ?>">
<tr>
<td>
<?php include("content.php"); ?>
</td>
<td valign="middle">
<?php
echo "<a href='$url' target='_top'>remove frame</a>";
?>
</td>
</tr>
</table>
content.php
just some ads
index.php
<?php
require ("config.php");
//default url if none is set
$nourl = "http://www.bbc.co.uk";
$url=$_GET["url"];
if(!$url)
{
$url=$nourl;
}
?>
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<frameset rows="<?php echo $size; ?>,*" frameborder="NO" border="0" framespacing="0">
<frame src="frame.php?url=<?php echo"$url" ?>" name="frame" scrolling="NO" noresize>
<frame src="<?php echo "$url"; ?>" name="main">
</frameset>
<noframes>
<body>
Sorry frame enabled browser is required
</body>
</noframes>
</html>