Re: Redirect Problem
| From: | jeremy brand | Date: | Fri, 18 Aug 2000 05:25:00 +0000 |
| Subject: | Re: Redirect Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12408@lists.php.net to get a copy of this message | ||
> I have a small redirect problem. I'm currently using a Javascript to
> redirect a page through a CGI if someone comes directly to that page.
> I'm finding a lot of people seem to have JS turned off, or are using
> older browsers that don't support the way I'm doing it. Apart from
> that, it works great.
>
> 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?
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.jeremybrand.com/jeremy/brand/jeremy_brand.html
for more __