Re[2]: [PHP] Re: weird header() (bug may be)

From: Date: Thu, 12 Feb 2004 08:48:15 +0000
Subject: Re[2]: [PHP] Re: weird header() (bug may be)
References: 1 2 3  Groups: php.general php.general 
Request: Send a blank email to php-general+get-177492@lists.php.net to get a copy of this message
Hello Jason, Thursday, February 12, 2004, 6:38:05 AM, you wrote: >> It should be this: >> header("Location: another_page.php"); >> and NOT header("Location:another_page.php"); JW> Also it should be an absolute URL otherwise it might break on some (standards JW> compliant only) browsers: While I totally agree with both these pieces of advice, they're unlikely to be the cause of the problem. YES you should have a space after the Location: part and YES you should have an absolute URL, *but* most modern browsers won't care if you haven't - the following works perfectly on IE6/Opera7/Firefox - no matter how malformed it looks: Header("Location:page2.php"); Chris provided the solution to the original problem in his reply, but I just wanted to bring this up. The OP should of course modify his header statements, but its unlikely to resolve his problem on its own. -- Best regards, Richard mailto:rich@launchcode.co.uk

« previous php.general (#177492) next »