Re: Am i crazy?

From: Date: Sun, 04 Nov 2001 19:08:36 +0000
Subject: Re: Am i crazy?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73407@lists.php.net to get a copy of this message
It has to do with the $name variable, if you've fixed the code to check for equality instead of setting the variable: if ($name=='admin') { Echo $name and make sure that it is actually getting set.. Also make sure your header information is before html.. let's see.. yeah that's about all I can think of.. if $name is echoing something then I have no clue why it's not working :( Rick > Did I forget everything in a few months? > if ($name='admin') { > header("Location: $MYPATH/admin.php"); > } > > Doesn't. That is it doesn't redirect to whatever $MYPATH/admin.php > translates to. Doing an echo $MYPATH directly after the line shows that the > path is interpreted correctly - and the file exists (I checked). And the > $name is correct - echo $name gives admin. And neither does the php.net > example work ... > > if ($name='admin') { > header("Location: http://www.php.net/"); > } > > doesn't redirect to php.net. > > *sigh* > > Martin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#73407) next »