[PHP-DB] Re: [PHP-WIN] Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-15 Thread Mikael Grön
Simple. A resource, like the stuff you get when running mysql_query for instance ($resource = mysql_query($sql);) cannot be stored in a session variable. When you go to a new page, the resource variable is no longer linked to the results of the mysql query and thus wasn't stored. You

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-15 Thread bedul
, 2007 11:49 AM Subject: Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword [ taking php-windows out again :P ] bedul wrote: the problem is right here (said on error msg): session_register(myusername); session_register(mypassword); u should use session_register(myusername

[PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chetanji
To All a Welcome, 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

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chetanji
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

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Dimiter Ivanov
On 5/14/07, Chetanji [EMAIL PROTECTED] 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

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chetanji
Thanks for the reply, this is the only output before and after the $_POST array(0) { } ..that's it I still have the two Notice's from PHP. But the program works otherwise, in checking the DB for the hashed password... that matches the typed in username ... that is then

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chetanji
Well, well, I just logged on to test the crypt output by typing in wrong username/password pairs and got this output from the var_dump($_POST); incorrect username/password pair;;; array(3) { [myusername]=

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Dimiter Ivanov
On 5/14/07, Chetanji [EMAIL PROTECTED] wrote: Thanks for the reply, this is the only output before and after the $_POST array(0) { } ..that's it I still have the two Notice's from PHP. But the program works otherwise, in checking the DB for the hashed password... that

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chetanji
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

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Dimiter Ivanov
On 5/14/07, Chetanji [EMAIL PROTECTED] 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

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread bedul
the problem is right here (said on error msg): session_register(myusername); session_register(mypassword); u should use session_register(myusername) after declare the name. i taken from my php chm It is currently impossible to register resource variables in a session. For example, you cannot

Re: [PHP-DB] $_POST[mypassword]; ***Undefined index: mypassword

2007-05-14 Thread Chris
[ taking php-windows out again :P ] bedul wrote: the problem is right here (said on error msg): session_register(myusername); session_register(mypassword); u should use session_register(myusername) after declare the name. i taken from my php chm It is currently impossible to register resource