simple problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
i have two files that consists of menu items:

menu_left.php , menu_right.php

my index.php file:


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.

Re: simple problem

Quoted text here. Click to load it

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>
switch ($_GET['page']) {
    case "somepage":
    case "someotherpage":
    // more cases here...
    case "default":
        <td><?php include("menu_right.php"); ?></td>

Site Timeline