Log in

View Full Version : #include from referring url



bsmall
08-06-2007, 02:44 PM
I am trying to perform a simple include here, and can't seem to get it to work.

I have a main header (HEADER.HTML) that is included on all of my site pages. Inside of that header, I need an include that will call a navigation that will change depending on what page the end user has clicked (CATNAV.HTML).

For example, the top nav bar has the typical ABOUT, CONTACT, RESOURCES, etc. That is the same on all pages, and is what makes up my primary HEAR.HTML include. Within the RESOURCES page, however, there are additional, lower level navigation items that appear on the left side of the page (or are supposed to). This is what I cannot get to work.

Those left side navigations will change depending on what was clicked at the top.

http://www.medi-dyne.com/new/resources/resources.shtml for example.

It's like I'm trying to tell the header file that IF SOMEONE CLICKS "RESOURCES", THEN SHOW THE CATNAV.HTML FILE (the lower level nav that is to appear on the left).

I have each folder in my directory labeled accordingly (/ABOUT, /CONTACT, /RESOURCES, etc) and each folder contains a CATNAV.HTML file that the HEADER file should include.

Can anyone help me here? I'm sorry if I'm being unclear. Obviously I'm a greenhorn here.

Thank you, in advance.

Veronica
08-06-2007, 09:30 PM
Not totally clear about what you want.

Do you mean when someone clicks on "resources" and then winds up on resources.html, that you want a different left nav bar on the resources.html page than there is on, say, the contact.html page?

Also, since they're shtml files, I assume you're ussing server side includes to do this?