dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: HTML menu with php include

  1. #1
    Join Date
    Jun 2009
    Posts
    20

    HTML menu with php include

    I think you guys will understand this best if you take a look at this page:

    http://www.db5dynamics.com/silverlab.../functions.htm

    This site does not use php but I would like to change to that. But I have a question regarding the navigation menu. You see that the current link is highlighted with a gray background and the "sub"-tree that belongs to that category is visible. How can I achieve that effect with php? I need to have the complete menu in HTML but then control which categories should be visible/hidden depending on which page the user looks at.

    If you don't understand please reply and I'll explain more in detail.

    Thanks for help!

  2. #2
    Join Date
    May 2008
    Posts
    31
    just rely on $_SERVER['REQUEST_URI'] part of information. It will tell you current location of your visitor, within your document.

  3. #3
    Join Date
    Jun 2009
    Posts
    20
    Ok, thanks. I've looked at $_SERVER['REQUEST_URI'] but can you maybe clarify a bit more in detail how to do what I want?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles