Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an update password page

Status
Not open for further replies.

originalxavier

Programmer
Mar 5, 2003
69
US
Hello all,

I am trying to create a page where users can change their password. This seems like it should be a relatively simple but isn't (as most things aren't). I am using Dreamweaver to develop, I am connecting to an access DB and am using ASP VBScript. I can get the page to check the user names access level (admin, user, etc.) and I can even create a recordset that will only return a dataset that is specific to the user ID that has logged on at the home page. The problem is that I do not want the user to just be able to change the password.

I want the user to have to enter the old password and the new one twice. The old password will then be checked against what is in the database, and the two new passwords should be checked against each other to make sure they match before actually updating the record.

I tried searching for this in the forum but to no avail. If anyone can offer input, or a link to an example (whether it is on tek-tips or another site) where I could find out more about such an action, it would be greatly appreciated.

Thanks in advance,

Xavier

----------------------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning."
Rich Cook
----------------------------------------
 
Xavier,

I’m not familiar with Dreamweaver but your description is basic and would be simple to implement using ASP in any other environment. Perhaps you could be more specific about what problem(s) you are having?

Are you using SSL for encryption? Just curious.



-pete
 
(The quote from the end of your message is from author Rick Cook, not Rich Cook, btw.)
 
I understand that you're effectively asking how to do it with what Dreamweaver generates, which you've discovered you can't do. As a result you'll need to dive much more deeply into ASP, learning how to use ADO to connect to your database and retrieve the information, how to compare two form field values, and then how to insert the results back into the database via ADO.

As palbano noted, it's a trivial task for an experienced ASP programmer. Unfortunately it's a fair bit to learn for someone who knows nothing about ASP beyond what Dreamweaver generates.

If you want to do the coding yourself I recommend diving into one of the many good ASP tutorials out there. The W3Schools link at left provides a good series of tutorials.
 
>> which you've discovered you can't do.

OUCH! That had to hurt! [lol] Reminds me of the thread "Will programmers become redundant?" in the "My own development as a professional" forum.

>> (The quote from the end of your message is from author
>> Rick Cook, not Rich Cook, btw.)

I'm getting some serious deja-vu from that! Have we been here before? [bugeyed]

-pete
 
Everyone,

Thank you for all of the input. I am using an ADO connection to retrieve the data. I am unsure as to how to compare the two fields. Alas, I digress. I do thank you, Genimuse, for the reference as to where I should start to "look/learn."

PS I will be sure to change the name on my quote. Thanks for pointing out the error of my ways.

Xavier

----------------------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning."
Rich Cook
----------------------------------------
 
You could try something like:

If Lcase(request.form("textfield1")) = Lcase(request.form("textfield2")) then
'fields match
Else
'fields don't match
End If

BDC.
 
I wouldn't have said anything about the quote but I know Rick and he deserves credit for his cleverness. :)
 
I corrected mwolf on it at one point as well , which is why you might be getting the deja vu feeling :)

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top