Re: Redirect Problem

From: Date: Fri, 18 Aug 2000 06:43:41 +0000
Subject: Re: Redirect Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12512@lists.php.net to get a copy of this message
if( window.location.href == 'http://www.server.com<?php echo $PHP_SELF; ?>') { window.location.href = 'http://www.server.com/cgi-bin/SoftCart.exe<?php echo $PHP_SELF; ?>?E+toolstore'; }
Isn't this :
if( window.location.href == 'http://www.server.com<?php echo
$PHP_SELF; ?>') always going to return TRUE?
Nope, it doesn't. $PHP_SELF doesn't include the query string, which means that when it has a query string, in this case "?E+toolstore" then the window.location.href is different. :-) cheers, Richard

« previous php.general (#12512) next »