oh my oh my oh my... i really hope someone can help me out here.
I have a function that sets a variable to load a different css file depending on user input. Simple enough, but here is where the problem comes in. The user sets these variables with a get variable (not the only way I have tried to send the data) and the php will run my function and return them to the main page. This happens no matter what page they are looking at on the site. I have friendly urls turned on, so $_SERVER[’PHP_SELF’] is always set to index.php, while i really want them to return to the page they were on when they clicked on my link.
Example.
User is browsing on domain.com/home/learn/about_us, and clicks my link which is <a href=’?size=small’> and this returns them to domain.com after running the function. With friendly urls turned on, how do I get them to be returned to domain.com/home/learn/about_us?
Please help!