Re: Re: Am i crazy?
| From: | Jim Conner | Date: | Mon, 05 Nov 2001 07:57:41 +0000 |
| Subject: | Re: Re: Am i crazy? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73451@lists.php.net to get a copy of this message | ||
At 18:59 11.04.2001 +0100, oliver walkhoff wrote:
Did I forget everything in a few months?
if ($name='admin') {
header("Location: $MYPATH/admin.php");
}
try if ($name =='admin') {
('==' instead of '=', otherwise you are assigning 'admin' to $name) !
oliver
You are correct to correct him in setting his equality straight, but he will continue to have a problem. It should be "working" the way he is writing the condition simply because either way, he'd have a true statement (supposing $name is really eq to "admin". Therefore, he has more than one problem here. However, I know nothing about the header() function.
-- 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- Jim -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- http://www.perlmonks.org/index.pl?node_id=67861&lastnode_id=67861
-----BEGIN PERL GEEK CODE BLOCK----- ------BEGIN GEEK CODE BLOCK------ Version: 0.01 Version: 3.12 P++>*@$c?P6?R+++>++++@$M GIT/CM/J d++(--) s++:++ a-$C-@D!>++++(-)$S++++@$X?WP+>++++MO!>+++ P++(+)>+++++ L+++(++++)>+++++$ !E*++++$O!MA->++++E!> PU-->+++BD C++++(+) UB++++$L++++$S++++$
+PP+++>++++n-CO?PO!o >++++G W++(+++) N+ o !K w--- PS---(-)@ PE*(!)$A-->++++@$Ee---(-)Ev++uL++>*@$uB+ Y+>+++ PGP t+(+++)>+++@ 5- X++ R@
*@$uS+>*@$uH+uo+w-@$m! tv+ b? DI-(+++) D+++(++) G(++++) ------END PERL GEEK CODE BLOCK------ ------END GEEK CODE BLOCK------