Hello everyone!
I have a menu that is in my header file. If I haven't logged in yet with my username and password and I click on a link on the menu it takes me to a page that stores cart items in a temporary cart until I log in.
If they log in first, I want the menu Items to refresh so that the memberID is passed with the link, then based on this memberID the cart items are put in the cart for that member right away.
I have the link:
<a href="workshops.php?section=listWorkshops&memberID=$memberID">
Workshops</a>
so when the page first loads It doesn't have a memberID, therefore it carried out as normal. If I log in first I want this link to read:
<a href="workshops.php?section=listWorkshops&memberID=1">
Workshops</a>
Is there some kind of refresh function that will do this for me when I hit the sign in button?
Thanks for your time. Any help would be greatly appreciated.