PDA

View Full Version : Retrieve the lost password from database n send it to the our mail Using PHP..???


nani_s23
05-02-2007, 08:35 AM
Hi friends...

new to this group...!!

I have created one Login.php.....there username n password given in which i have already stored the username eg.nani23.4u@gmail.com...and password eg.******.......i can sign in.......and also i written forgottenpassword.php .....now the actual problem is.....if i forget the password.....i have created one i should retrieve the lost password from Database ...and that password should beee mailed to my ID...eg..nani23.4u@gmail.com..!!! so please help me in it..!!!

guelphdad
05-02-2007, 12:49 PM
no you shouldn't. what you should do is have your application create a new password and send it to you.

now is this a user/password to log directly into mysql as a mysql user or is this a login/password to get into your website or other application?

the difference is in the first case you should use the PASSWORD function in mysql to hash the password, in the latter you should use SHA1 to hash them.

nani_s23
05-03-2007, 11:06 AM
.....ok i got it........ thanks for ur suggestion.....

just for my 1st post i have got the solution ...really gr8 site ...thank you..once again...!!!:thumbsup: