View Single Post
Old 07-06-2005, 05:12 AM   #1 (permalink)
SpikeNexus
Registered User
 
Join Date: Jul 2005
Posts: 2
SpikeNexus is on a distinguished road
php linking problems

Greetings,

Having been told about the advantages of having a website use php instead of just html, I have decided to re-write a website of mine in php to rid it of frames.

I've managed to include all the appropriate pages in my index.php and get them showing up where they're supposed to, however I'm having what seems to be a small problem with linking the pages.

My situation is as follows:

I have two navigation bars - one included in the header section of the page, and one to the left of the central content area. The links in the header page are to load pages in the left navigation bar, and any links in the left 'navbar' are to load pages in the central content area.

Pages to load in the left navbar are linked using index.php?navbar=page
Pages to load in the central area are linked using index.php?location=page

This does work to an extent. The pages do load in their respective areas. However, for example, when following a link to a index.php?location=page page, regardless of what the previously specified index.php?navbar=page page is, the navbar will reload to its default page, specified using,

if (empty($navbar)) {
$navbar='default';
}

This occurs vice-versa, as well.

I have tried numerous ways of preventing the pages from doing anything, but have had no success. I really don't have extensive knowledge in php, so I don't think that if I can't make it work, then there's no way it is going to work, but I'm out of ideas.

I'm wondering if anyone else has any ideas on how I'd go about setting this problem right; they'd be much appreciated.

I have set up an example of what my problem is, at
http://spikenexus.toxicsheep.com/txv/index1b.php
should anyone want to see it in action.

Thanks.
SpikeNexus is offline   Reply With Quote