I have 2 boxes that i want to be able to minimize and maximize. Because there are two of them, i used $REQUEST_URI to prevent one from opening when the other is closed. It works, but i get something like this in the URL "&left=false&left=true&right=false&left=false&left=true"
How do prevent this from happening? Every time you click on either button, instead of replacing the variable, it just its it to the end of the URL.
I use the following code (for the right box) if it helps any.
<?php
if ($right == "false") {
echo ("<a href=\"$REQUEST_URI&right=true\"><img src=\"img/topic_open.bmp\" border=0 width=7 height=7></a>");
} else {
echo ("<a href=\"$REQUEST_URI&right=false\"><img src=\"img/topic_close.bmp\" border=0 width=7 height=7></a>");
} ?>
The easiest way to explain is just to see my problem in action, click on the close box to the right of "Latest on UnionDead".