RE: [PHP] not getting form variables using POST.
| From: | Deepak Chawla | Date: | Fri, 27 Oct 2000 10:28:21 +0000 |
| Subject: | RE: [PHP] not getting form variables using POST. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22310@lists.php.net to get a copy of this message | ||
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
>
>
>