View Single Post

  #5 (permalink)  
Old 12-01-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] header("Location: page.php") not redirecting

--- rogue <rogue@mail.rightcode.net> wrote:
> $redirect = "http://" . $_SERVER['HTTP_HOST'] .
> "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar";
> error_reporting(E_ALL);
> echo "Location: $redirect";
> header("Location: $redirect");


I meant to try using a full URL first, then use echo if it still doesn't
work. :-) This shouldn't work as it is, because you have output prior to
your header call.

But, since you already tried this, what did the echo output? Did it look
correct? Comment that out, and see what happens.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
Reply With Quote