I have a site that I want to change the variable through a link and then update the session variable. There is a var($tab1) that will open and close depending on what value (1 opens it, 0 closes it). But since I started using Sessions to track these kind of variables, that variable will not update itself. when I click the link to open it, it does(since it has now been set), but to close it, it gets stuck.
Basically what I am asking is to update a (session) variable through the URL. like this
test.php?tab1=1&s=<sessionid>
and then it would set tab1 as 1 and store it in the session. And then if one was to click a link like this:
test.php?tab1=0&s=<sessionid>
it would update $tab1 to 0 and store it in the session. If there is even some other way of maybe doing this, that would really help.
I have php 4.3.x (I forgot the last number).