Click to See Complete Forum and Search --> : php and <div> tag


schkeb
09-29-2004, 02:36 PM
Hi.
I am making a site that has two columns using <div> tag, the one to the left is going to be the menu, and the other the main window.

I'm using the php 'include' command to load a menu.php on the left <div>, and a welcome page in the main <div>.

The object is now to get links from the menu to show in the main window.

From menu.php:
<a href="http://www.google.com" target="main">Google</a>

This should load google in the <div> main, but nothing happens.

How do I get the main <div> to include whatever gets called from a link from the menu?

rephrase: I'm trying to send a link from menu.php to the <div class="main"> which is defined in index.php

Malone
09-30-2004, 07:45 PM
I'm rusty on my HTML but I think you need a pound sign to target an area in the same html document.

so

<a href="http://www.google.com" target="#main">Google</a>

might work.