View Full Version : PHP Iframe alternative

Evil PopTart
03-28-2009, 05:07 AM
Hi I'm Bill. Just joined up. I'm having a brain fart when it comes to PHP and what not. I understand what the include function does. what i dont know is how to implement that in my page. I want to set up a PHP page exactly like an iframe, but without the iframe. say i have 5 links. link1 displays link1content.php in a table. link2 displays link2content.php in that same table removing link1content and so on just like an iframe would.

im understood that this code pulls a page and displays it exactly where i put it?

include "content.html";
and this code interperets the URL?

include "pagedirectory/".$_GET["q"].".htm";

(got that info from here (http://www.dynamicdrive.com/forums/showthread.php?t=35624))

any help would be greatly appreciated. thank you

03-30-2009, 03:18 PM
I just put the include inside a container with fixed dimensions, like so:

<div id="fakeiframe">
<?php include("content.html") ?>

and define the size/ position/ scrolling etc. in the css

width: 500px;
height: 150px;
overflow: scroll;