If your app has a login and you capture the userid, when they access the change 
password form, query the db for the current password and set it to a variable. then 
when they type in the old password, you can match what they type to the variable 
holding the old password from the db. If they match, update it, if not display a 
message.

---------- Original Message ----------------------------------
From: "Susan N. Klos" <[EMAIL PROTECTED]>
Date: Tue, 3 Apr 2001 13:19:52 -0400 

I have passwords stored in the database.  I want to create a form where the
user can change the password providing of course they have the old one.  Do
I need to store the old password as well as the new password in the
database.  Or on the action page can I check for the old password first and
exit back to the form if the old password does not match the password in the
database?  If it does match go ahead and update the password in the database
to the new one?


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com



--
Clint Tredway
www.factorxsoftware.com
--

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to