header()-question

From: Date: Mon, 02 Sep 2002 16:02:30 +0000
Subject: header()-question
Groups: php.general 
Request: Send a blank email to php-general+get-114936@lists.php.net to get a copy of this message
I use this code with the intension to REDIRECT to the file login.php if (!isset($login)) { header("Location: /ha/login/log.php?goal=log&goback=$PHP_SELF"); } else { some code here } When I load the page the following happens: The source show the filename with this script and not the log.php, but the content is from log.php I don't understand noooothing. So, if header() don't do redirection, which php-function does? (Or, is there a better way to achieve the same?)

« previous php.general (#114936) next »