RE: [PHP] redirection to another page function

From: Date: Mon, 23 Apr 2001 02:15:30 +0000
Subject: RE: [PHP] redirection to another page function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49786@lists.php.net to get a copy of this message
At 11:56 23/4/2001 +1000, you wrote:
I never had any trouble using header() to redirect, but wouldn't something like this work even better (without worring about previous outputs)?? function redirect($dest) {
         ?>
         <script language="JavaScript">
                 parent.location.href='<?=$dest?>';
         </script>
         <?
} it would work wouldn't it? In Netscape: Menu >> Edit >> Preferences >> Advanced >> [ ] Enable Javascript
    ^
    Not ticked
Oops. I just broke that redirection. :)
Yeah... I know that... but, c'mon... a browser that doesn't support Javascript can't surf trough at least 30% of all websites... it's the absolute minority. Netscape itself is a minority. ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

« previous php.general (#49786) next »