a problem involving iframes and php..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

a problem involving iframes and php..

Post by Charles256 »

the relevant php...

Code: Select all

<div id="mainbody">
		<?php
		echo ("<iframe src='".$page.".php' width='100%' height='470px' scroll='yes' border='0' name='content'>You need to enable frames to view this site. Thank you.</iframe>");
		?>
		</div>
the relevent html..

Code: Select all

<div id="nav"><a href="index.php?page=testing" target="content">testing</a></div>
any idea why that code insists on opening up a new window every time? makes no damn sense...could be just the set up of my server or something??[/list]
Post Reply