Header won't redirect

From: Date: Fri, 19 Sep 2003 13:12:29 +0000
Subject: Header won't redirect
Groups: php.general 
Request: Send a blank email to php-general+get-163130@lists.php.net to get a copy of this message
This is code that I have in my index that check whether or not SSL is being used when accessing certain pages and if not then it redirects to the same address but with SSL. if ($pagename=="login" || $pagename=="signup" || $pagename=="checkout") { if (!$HTTPS) { //header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']."?pagename=$pagename"); exit; } } This used to work before I upgraded my PHP. Now when I click on a link that matches my SSL checker it just hangs: http://www.routerbitworld.com/index.php?pagename=checkout If I change the header to redirect to a location without any variable directive like this http://www.routerbitworld.com/index.php ...works fine. Why can't I send a variable this way? Thanks, Jonathan Duncan

« previous php.general (#163130) next »