Re: Am i crazy?

From: Date: Sun, 04 Nov 2001 22:41:26 +0000
Subject: Re: Am i crazy?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-73420@lists.php.net to get a copy of this message
well when you were using echo $name to test then you were outputting html, hence no redirect... if your php is set up in such a way as to suppress errors then you wouldn't have been warned about it..check that nothing else is being outputted, eg a space before the first <?. If that doesn't fix it turn error reporting down to its lowest level. After using a header redirect often comment to put exit; HTH,Tom ----- Original Message ----- From: "Martin" <chimbis@bahnhof.se> To: <php-general@lists.php.net> Sent: Sunday, November 04, 2001 8:24 PM Subject: Re: [PHP] Am i crazy? > Richard Baskett wrote: > > > 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.. > > Yes. > > > Also make sure your header information is before html.. > > There isn't any html in the page at all. It's intended as a switchboard for > people logging in to be redirected according to user name. > > >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 :( > > Martin S > > -- > 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 (#73420) next »