RE: [PHP] Am i crazy?
| From: | Martin | Date: | Sun, 04 Nov 2001 20:20:11 +0000 |
| Subject: | RE: [PHP] Am i crazy? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73415@lists.php.net to get a copy of this message | ||
Jack Dempsey wrote:
> what happens?
if ($name == "admin") {
echo $name;
header("Location: $MYPATH/admin.php");
}
Displays admin on the page where the redirect is from (switch.php).
Without the echo statement I just get a blank switch.php.
I'm simply not redirected anywhere. (Nothing else is supposed to happen).
> are you sure $name really equal's admin?
Ohh yes.
> if you change header to echo $MYPATH does that work?
No.
Martin S