I created some basic GUI where I read the identification of some items from a XML file via PHP.
So when you click on a item it would go to something like www.example.com/item_id001
Now, I have a menu in this application. But I just don´t seem to figure out what would be the wast way to change the menu links based on the item selected, PHP, javascript. Not sure what is the normal procedure for this.
Basically on the page there are 10 items. Now I have hardcoded the menu to go always to item1. So if you click the button "Information" in the menu, it will go to the page that displays the information of item1.
Now this makes sense if you only have 1 thing listed, but not several. My idea is the user clicks on a item, and an arrow or selection is showed next to the item to indicate the users that ITEM is now active. Now if you would click on the menu "Information" again, it would go to the page (or pass via session) the ID of the user selected item.
I made it sound to complicated but this is the most basic thing in any web interface. What would be the best procedure to go with this? Change the links on the fly with javascript? Or change the PHP session? Can someone point to some very newbie basic examples?
Im not a coder so I just use what I find around. Usually I pay developers for stuff, but this is just to embarrassing as its something just to simple to actually hire someone to explain me how to do this. I found some ideas on the net, but im actually curious on what is the method most webapps use this days.
Thank you