$thisPage = "http://".$HTTP_SERVER_VARS["HTTP_HOST"].$PHP_SELF; why can't I use the above syntax on my local server, it works fine online with my media temple account.
My local server says that the variable PHP_SELF is undefined
Try $thisPage="http://".$SERVER['HTTP_HOST'].$SERVER['PHP_SELF'];
I think that just worked like a charm. Thanks a lot.