Page 1 of 1

php navigation or iframes?

Posted: Wed Apr 07, 2004 1:29 pm
by bawla
i was wondering which one to use on my new site,

either iframes or a php code like

Code: Select all

<?php
switch($id) { 
default: 
include('main.htm');
break; case "wow":
include('wow.htm');
break; case "tutorials":
include('tuts.htm'); 
break; case "files":
include('downloads.htm'); 
break; case "aboutme":
include('me.htm');
break; case "andsoon":
include('andsoon.htm'); 
} 
?>
if anyone has any better php codes for navigation, please post

Posted: Wed Apr 07, 2004 1:45 pm
by litebearer
hmmm

I personally like using iframes (my audiences are relatively small and narrowly targeted). It is more a matter, IMHO, of objective and personal preference. The iframes allow me to present a visual appearance more in tune with my objective.

Posted: Wed Apr 07, 2004 1:59 pm
by vigge89
i'm more for an include-system, much easier for handling PHP...

Posted: Wed Apr 07, 2004 4:43 pm
by mudkicker
depends on your site, i think.

Posted: Wed Apr 07, 2004 5:40 pm
by ol4pr0
A Combination of both.. can be fun sometimes.

Posted: Wed Apr 07, 2004 5:43 pm
by johnperkins21
I'd say it depends. I have a site that uses a combination of both. If you want the individual page to refresh (using a post or header()), it might be better to put in an IFRAME so that it does not interfere with the rest of the page. Just my $.02

Posted: Wed Apr 07, 2004 5:43 pm
by pickle
I would argue strongly in favour of the different includes files. iframes are by no means a widely supported construct. Albeit they are supported by the most widely used browser, using iframes just screams proprietary. Use includes.

Posted: Thu Apr 08, 2004 2:58 am
by vigge89
as johnperkins21 said; it is good if you want the page to refresh, like an chat/shoutbox etc..