| Chetanji 2007-05-14, 6:58 pm |
|
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
array(3) { ["myusername"]=> string(2) "my" ["mypassword"]=> string(4)
"amma" ["Submit"]=> string(5) "Login" }
array(3) { ["myusername"]=> string(2) "my" ["mypassword"]=> string(4)
"amma" ["Submit"]=> string(5) "Login" }
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Dimiter Ivanov wrote:
>
> Well then the $_POST array is empty that's why you have those notices.
> The $_POST array is populated with values ONLY after the form was
> submitted to the login.php script.
> If you use this script before the form was submitted or in any other
> context, then you will get those notices.
>
> If you check if the variables you are looking for are set, before
> assigning them, you will not get the notices.
>
> Try this:
> if(isset($_POST["myusername"]) AND isset($_POST["mypassword"])){
> $myusername=$_POST["myusername"];
> $mypassword=$_POST["mypassword"];
> }
>
> On 5/14/07, Chetanji <chetan_graham@amritatech.com> wrote:
>
> Well then the $_POST array is empty that's why you have those notices.
> The $_POST array is populated with values ONLY after the form was
> submitted to the login.php script.
> If you use this script before the form was submitted or in any other
> context, then you will get those notices.
>
> If you check if the variables you are looking for are set, before
> assigning them, you will not get the notices.
>
> Try this:
> if(isset($_POST["myusername"]) AND isset($_POST["mypassword"])){
> $myusername=$_POST["myusername"];
> $mypassword=$_POST["mypassword"];
> }
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context: http://www.nabble.com/PHP-to-md5-th....html#a10607559
Sent from the Php - Database mailing list archive at Nabble.com.
|