RE: [PHP] not getting form variables using POST.

From: Date: Fri, 27 Oct 2000 10:44:58 +0000
Subject: RE: [PHP] not getting form variables using POST.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22313@lists.php.net to get a copy of this message
read type="password" as type="hidden". you're right. I checked the file, i did use hidden. the echo($uname) and echo($passwd) don't work either. Surprisingly the same code worked about 3 days back. I could verify the login and password with the database. Now I can't. On Fri, 27 Oct 2000, Dominick Vansevenant wrote: > Try to just echo your variables by using: > > echo($uname); > echo($password); > > Make sure the target name is correct, maybe check case. > > Your password field is hidden which means it is not shown, > for password you must use type="password" > > If you want to use hidden types, you must give it a value, > otherwise it is just empty, use value="blablabla" > > D. > > -----Original Message----- > From: Deepak Chawla [mailto:dchawla@usa.unl.edu] > Sent: vrijdag 27 oktober 2000 12:28 > To: Dominick Vansevenant > Cc: php-general@lists.php.net > Subject: RE: [PHP] not getting form variables using POST. > > > yes. > I'm using it as below > > ------------ part of html file ------------------ > <form action="Login.php" method="post"> > <input type="text" name="uname" size=10> > <input type="hidden" name="passwd" size=10> > <input type="submit"> > </form> > > ---------- part of php script -------- > if($uname="123456" && $passwd="654321") > give_access(); > else error_msg("Sorry"); > --------------------------------------- > > On Fri, 27 Oct 2000, Dominick Vansevenant wrote: > > > By their names preceded by a $ sign? > > > > D. > > > > -----Original Message----- > > From: Deepak Chawla [mailto:dchawla@usa.unl.edu] > > Sent: vrijdag 27 oktober 2000 12:19 > > To: php-general@lists.php.net > > Cc: dchawla@usa.unl.edu > > Subject: [PHP] not getting form variables using POST. > > > > > > Hi! > > I have recently started working on web applications and am using php4. > > I have a problem. I'm using HTML forms and sending form data to a php > > script via POST method. Earlier the method was working. Now for some > > reason, I don't get values in the variables. > > Correct me if I'm wrong, I understand that we can access form variables > > by their names in php scripts. > > > > any help would be appretiated. > > > > Thanks > > -deepak > > > > > > > > >

« previous php.general (#22313) next »