User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 429,891 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,325 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Programming Forums

Alternative approach to frames....?

Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: Alternative approach to frames....?

  #4  
Mar 24th, 2008
e.g. with PHP function inserted in content:

  1. <?php
  2. $menu = $_GET['menu'];
  3. if ($menu=="") $menu=index;
  4. $filename="_".$menu.".php";
  5. include "$filename";
  6. ?>

In menu can be
<a href="index.php?menu=articles">Articles</a><br>
if is file named _articles.php .
Last edited by peter_budo : Mar 24th, 2008 at 3:22 pm. Reason: Keep It Organized - please use [code] tags
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
All times are GMT -4. The time now is 8:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC