"Piotr Wolski" <wo****@cs.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.edu...
i have two files that consists of menu items:
menu_left.php , menu_right.php
my index.php file:
include("menu_left.php");
include("menu_right.php");
i want to do:
when i click on the item from menu_left(or right) so the text displays
on the screen in the center. now it is displaying under menu.
contents of menu_left.php:
<a href="index.php?page=somepage">Some page</a>
contents of menu_right.php:
<a href="index.php?page=someotherpage">Some other page</a>
contents of index.php:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td><?php include("menu_left.php"); ?></td>
<td><?php
switch ($_GET['page']) {
case "somepage":
include("somepage.php");
break;
case "someotherpage":
include("someotherpage.php");
break;
// more cases here...
case "default":
include("home.php");
break;
}
</td>
<td><?php include("menu_right.php"); ?></td>
</tr>
</table>