View Full Version : Need iclude help with Menu

02-18-2006, 05:52 AM
Alright like the title says, I just wanted to ask so so. I need my pages to load in on the index page its self like this script.

$load = array ('home','podcast','photos','id','friends');
$page = $_GET['page'];
if (isset (in_array ($page, $load) ))
require "$page.inc";
require "home.inc";

Tho this one is writen like....bad.. and I see some errors... But kinda like an iFrame.. I want the PHP page to load into a DIV. By clicking on a link it will load the content onto a DIV such as <div class="main"> That's what I wanna do.. Load an page into a div when clicking on a link. I know it can be done. I've seen it befor. I just need someone to tell me how to do that. Because I've been looking for this kinda thing since 3 weeks ago and still can't find it.... :eek: