header("Location: " . $PHP_SELF) doesn't work

From: Date: Wed, 27 Sep 2000 14:49:27 +0000
Subject: header("Location: " . $PHP_SELF) doesn't work
Groups: php.general 
Request: Send a blank email to php-general+get-17681@lists.php.net to get a copy of this message
Hi In a script I do that and I get Document contained no data. But if I append a parameter, such as header("Location: " . $PHP_SELF . "?asdf") it works. Why this strange behavior ? Next line is an exit() (I'm doing this in a while with HTTP_POST_VARS) If I remove the exit() it works. Does the post variables still remain after a header("Location: ...") ? Thanks, -- Marius Andreiana

« previous php.general (#17681) next »