For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2007 > Re: [PHP-DB] $_POST["mypassword"]; ***Undefined index: mypassword









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] $_POST["mypassword"]; ***Undefined index: mypassword
Dimiter Ivanov

2007-05-14, 6:58 pm

On 5/14/07, Chetanji <chetan_graham@amritatech.com> wrote:
>
> Okay, now with the isset and var_dump in place within the login.php script,
> I get the output of what I typed into the Log On page.
> All this output is 'premeal' for the login.php script.
>
> So then the PHP "Notice's" are just something to know the PHP parser is
> seeing a empty, undescriptive container and is throwing a "hey, look at this
> it may not be normal" when the login.php script is run by itself in the
> browser. You are thinking its not a problem and will not lead to any
> problems. If this is the case then thankyou Dimiter.
> Blessings,
> Chetanji


Yes that's the purpose of notices.
From the php manual :

"Run-time notices. Indicate that the script encountered something that
could indicate an error, but could also happen in the normal course of
running a script."

http://www.php.net/manual/en/ref.errorfunc.php#e-notice

You may comment/remove the var_dump, it's only for debugging purposes.
You don't need it anymore.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com