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
, 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
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
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
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
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
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]=
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
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
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
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
[ 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
12 matches
Mail list logo