how do I get the current webaddress...
let's say for example I have http://www.awesomeness.com/folder/index.php
I then throw in my variable http://www.awesomeness.com/folder/index.php?something=blah
now I want to sort that http://www.awesomeness.com/?something=blah?sort=blah2
so what's the code for getting the current address? I understand that $_SERVER['PHP_SELF'] will get me http://www.awesomeness.com/folder/index.php
confusing?
You can use $_SERVER['QUERY_STRING'] to see what (if anything) was in the query string.
More info about the $_SERVER array here: [man]reserved.variables.server[/man].