help with iframes and PHP[unsolved]
Posted: Tue Oct 11, 2005 3:48 pm
please please please please help...The problem is it's loading the entire main page up inside of the iframe and then making a new iframe..here is the relevant code..if you need to see any other code just let me know and i'll post it asap.
As a side note the link doesn't actually change the URL yet the page changes.. :-/
body.php
testing.php (the page that loads within the iframe making a new iframe..weird..)
one last side note if i manually type in index.php?page=testing it works just fine..grrr...
As a side note the link doesn't actually change the URL yet the page changes.. :-/
body.php
Code: Select all
<div id="nav"><a href="index.php?page=testing" target="dc">testing</a></div>
<?php
if (!isset($_REQUEST['page']))
{
$_REQUEST['page']="NULL";
}
$page=$_REQUEST['page'];
if ($page=="NULL")
{
echo("
<div id='dlx'></div>
<div id='banner'></div>
<div id='grave'></div>
<div id='defaultbody'>");
echo("<iframe src='default.php' width='100%' height='120px' scroll='yes' border='0' name='dc'>You need to enable frames to view this site. Thank you.</iframe>");
echo ("</div>
<div id='mini'>");
}
else
{
echo ("<div id='mainbody'>");
echo ("<iframe src='".$page.".php' width='100%' height='300px' scroll='yes' border='0' name='dc'>You need to enable frames to view this site. Thank you.</iframe>");
}
?>
</div>Code: Select all
we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.we are testing the power of the code my unfamilair buddy.