Re: Re: weird header() (bug may be)

From: Date: Thu, 12 Feb 2004 06:38:05 +0000
Subject: Re: Re: weird header() (bug may be)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-177479@lists.php.net to get a copy of this message
On Thursday 12 February 2004 14:40, Eric Bolikowski wrote: > Headers have to be pretty accurate, or it will cause trouble. > And your redirect header is not quite correct. > It should be this: > header("Location: another_page.php"); > and NOT header("Location:another_page.php"); > > What you need here is a space between "Location:" and the URL. Also it should be an absolute URL otherwise it might break on some (standards compliant only) browsers: header("Location: http://www.example.tld/another_page.php"); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Honesty is the best policy, but insanity is a better defense. */

« previous php.general (#177479) next »