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!
It partially works for selected values and loading and displaying the others dropdown menus. There still some bugs to fix:
what if the user what' s to change in mid selection the category, problems with displaying the data selected in the menu.
And I still hadn' t made the part for retrieving data from cookies if the user comes from a product page and wants to compare it with another.
I don' t know how to display the selected value after it' s been selected and the form has been submitted i.e. user selects name of the category from the dropdown menu, the form is submited through JavaScript because of the onchange event in the dropdown menu and the user see the selected value in the menu and the new menus that appeared because of his selection.
EDIT: I don' t have any good ideas for doing this: I tried echoing the selected value with PHP, using the selected property with JS but after the reloading the page it switch to the first value in the menu.
Any ideas, snippets of code (JS or PHP) will be very much appreciated