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?


Martin S

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to