I want to try to store the referring page so that I can access it even if I reload the current page with a new variable and I'm just stumped.
For example, if I go from catalog.php?&category=10 to catalog.php?product=25, I want to be able to go back to catalog.php?category=10 even if I add variables onto the product part (ie, catalog.php?product=25&a=like). In the latter case, when I go back, it will return me to the product listing again, not the original category listing.
Any help would be appreciated.