Re: $_POST["mypassword"]; ***Undefined index: mypassword

From: Date: Mon, 14 May 2007 15:21:45 +0000
Subject: Re: $_POST["mypassword"]; ***Undefined index: mypassword
References: 1 2 3 4 5 6  Groups: php.db 
Request: Send a blank email to php-db+get-43592@lists.php.net to get a copy of this message
On 5/14/07, Chetanji <chetan_graham@amritatech.com> wrote:
I corrected a small spelling error to make the situation more understandable. Everything is the same I am stuck! Thanks in Advance, Chetanji Chetanji wrote: All the errors are gone but this nagging one. I am running a login script and getting this error... To bring the username and password into the processing script I am doing it this way, and having trouble. I have spent too many hours working on this one issue. Please help someone. Blessings, Chetan $myusername=$_POST["myusername"]; $mypassword=$_POST["mypassword"]; :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Notice: Undefined index: myusername in C:\Inetpub\wwwroot\AimsSite\docproedit\login.php on line 13 Notice: Undefined index: mypassword in C:\Inetpub\wwwroot\AimsSite\docproedit\login.php on line 13
Those messages mean that the variables $_POST["myusername"] and $_POST["mypassword"]; are not set. Try dumping the $_POST array "var_dump($_POST);" , to see what is in there, before you assign the values to $mypassword and $myusername.

« previous php.db (#43592) next »