Re: not getting form variables using POST.

From: Date: Fri, 27 Oct 2000 12:29:28 +0000
Subject: Re: not getting form variables using POST.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22322@lists.php.net to get a copy of this message
>>>>> "Deepak" == Deepak Chawla <dchawla@usa.unl.edu> writes: Deepak> yes. I'm using it as below Deepak> ------------ part of html file ------------------ <form Deepak> action="Login.php" method="post"> <input Deepak> type="text" Deepak> name="uname" size=10> <input type="hidden" Deepak> name="passwd" Deepak> size=10> <input type="submit"> </form> Deepak> ---------- part of php script -------- Deepak> if($uname="123456" && $passwd="654321") Deepak> give_access(); Deepak> else error_msg("Sorry"); Deepak> --------------------------------------- <snip> Is that a cut & paste from the code, if so, shouldn't if($uname="123456" && $passwd="654321") read if($uname=="123456" && $passwd=="654321") I read the original if statement as: set $uname to "123456" and set $passwd to "654321" then check that both are non-zero. Regards -- Chris Searle <chris@infostream.no>

« previous php.general (#22322) next »