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