updating password would be a form with username, old password, newpassword.. when submitting the form action is this page..
dim UpdatePasswordCon
Set UpdatePasswordCon = server.CreateObject("ADODB
UpdatePasswordCon.Connecti
UpdatePasswordCon.Open
set rsUpdatePassword = server.CreateObject("ADODB
rsUpdatePassword.ActiveCon
dim sqlUpdatePassword
sqlUpdatePassword = "SELECT * FROM Customer WHERE login='"& Request.Form("login") &"' AND password='"& Request.Form("password") &"'"
rsUpdatePassword.CursorTyp
rsUpdatePassword.LockType = 3
rsUpdatePassword.Open sqlUpdatePassword
if rsUpdatePassword.EOF then
response.write "invalid username or password"
else
rsUpdatePassword.Fields("p
rsUpdatePassword.Update
end if
Main Topics
Browse All Topics





by: awiincPosted on 2003-07-09 at 11:24:48ID: 8887625
You can basically do the same thing with usernames as you can with recordID as long as you don't allow duplicates. Suggest using emails as usernames...these are always unique.