Nav Menus

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Nav Menus

Post by Charles256 »

This might need to go in theory, maybe.

Either way..

Here is the nav system I got. On the left we have some options and whenever a user clicks on one of them it causes more options to be listed below that. and whenever they click one of those it opens up a new menu in the content area where they can make another choice which then leads to another choice and finally they are where they want...

to be more specific:
choose type of go-kart, choose specific model, choose general location on the go-kart, the specific location, and then they can see the parts for what they are looking at.

right now I am tracking all of this threw the URL but that is quickly becoming rather cumbersome, should I be tracking this with sessions? or what? Right now I'm twelve feet deep and don't remember where I am. or does somsoene have an entirely different idea all together?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

use javascript and css to display the menus instead of reloading a fresh PHP page each time one of the links are clicked.

i dont know how to do that, but i know thats probably gunna be your best option.

if not, then use the URL like you are, and devise some nifty way of using GET to navigate these menus, like http://www.url.com/index.php?menu=sub/sub1/sub2/sub3/
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

yeah i'm no javascript pro..hell..i hardly know it..something about alert boxes.. :-D
User avatar
trukfixer
Forum Contributor
Posts: 174
Joined: Fri May 21, 2004 3:14 pm
Location: Miami, Florida, USA

Post by trukfixer »

Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

now that my friend is nifty and I may just have to change my entire site to change the layout to somethign using that! thanks! :-D
Post Reply