Site wide contact form with changing left-hand nav links??

Discussion in 'HTML & Website Design' started by carlos123, Sep 14, 2009.

  1. #1
    Hi everybody,

    I have a problem that I have been trying to figure out for hours and I am still stumped so if anyone has any suggestions I would appreciate hearing them.

    Here's the problem.

    I have a contact form. No biggie. It works.

    On the main directory, the document root (i.e. "/"), the contact form shows up with a listing of about 10 navigation items on the left.

    Now one directory down (i.e. "/lessons/") I have 5 links. One of which is back to the contact form (which is located in the document root).

    When someone accesses the contact form from from the pages that are served up from the /lessons/ directory I want the 5 links to remain shown on the page. I don't want the original 10 navigation links to show up again.

    In other words when someone accesses the contact form from "/" I want the 10 navigation links.

    When someone accesses the contact form from /lessons/ I want the 5 /lessons/ links to remain in the left hand, navigation side bar. Not the 10 "/" links.

    I hope this makes sense.

    Anyone know how to do this?

    I've tried $_SESSION variables but so far haven't been able to figure it out.

    Carlos
     
    carlos123, Sep 14, 2009 IP