AW: [PHP-WIN]REDIRECT ?

From: Date: Wed, 06 Sep 2000 15:06:09 +0000
Subject: AW: [PHP-WIN]REDIRECT ?
Groups: php.windows 
Request: Send a blank email to php-windows+get-2475@lists.php.net to get a copy of this message
... or use this tiny function: function redirect($url, $message="", $delay=0) { /* redirects to a new URL using meta tags */ echo "<meta http-equiv='Refresh' content='$delay; url=$url'>"; if (!empty($message)) echo "<div style='font-family: Arial, Sans-serif; font-size: 12pt;' align=center>$message</div>"; die; } Greetinx, Mike -----Ursprüngliche Nachricht----- Von: Andy Hoffman [mailto:andy.hoffman@bms.com] Gesendet: Mittwoch, 6. September 2000 17:03 An: php-windows@lists.php.net Betreff: Re: [PHP-WIN]REDIRECT ? Pablo Vera wrote: > Patrick: > > Are you using the header() function, before any text is actually sent > to the browser ?, if anything goes to the browser before the use of > header(), it won't work. > > Wednesday, September 06, 2000, 7:35:57 AM, Patrick wrote: > > PS> With ASP we have response.redirect ......... > PS> how can I do with PHP3 IIS on NT ? > PS> header("location: somepage.php3"); don't work Also, make sure you add a carriage-return (I use two) on the end of your header string... header("location: somepage.php3\n\n"); -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#2475) next »