Apparently REQUEST_URI doesnt work with IIS 🙁 That is ok, as I at least gave me a place to start. I ended up finding some more info, and had to write this little sniplet to get it to work properly:
if (($SERVER['SCRIPT_NAME']) and ($SERVER['QUERY_STRING'])) {
$current_url = $SERVER['SCRIPT_NAME'] . "?" . $SERVER['QUERY_STRING'];
} else {
$current_url = $_SERVER['SCRIPT_NAME'];
}
This was with Windows 2000/IIS.
Thanks for the help!
Matthew