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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Reminder script 2

Status
Not open for further replies.

clanm

Programmer
Dec 26, 2005
237
US
Newbie PHP-er here!

I'm trying to create a "Password Reminder" script, and am not too sure where to start.

Any suggestions?
 
I'm storing the password in the db, and would like to send it to the user.

Thanks!
 
What is the thing that is troubling you? This is not a code repository or rent-a-coder type website, so you need to show where you're at or explain exactly where you have problems.
 
I searched Google on Password Reminder, but it just gave me hits on sits that had the functionality.

I need to know how to do a script / or where to search for sending an email to the user along with their password.

I'm storing all the information, but just need the onclick help with what to do. The form design is already done.
 
i would not, as a matter of course, store an unencrypted password in a database. i tend to use md5 hashes to crypt the password.

this makes simple password recovery scripts a nonsense of course!

instead a password recovery script would generate a new password and write the new crypted value of the pwd to the database. there would also be a one-time flag against the pwd so that when the user receives the new pwd and logs in with it, he is forced to change the password.
 
jpadie!

Thanks for the reply! All ideas / suggestions are welcome!
I'm using Dreamweaver 8, and found this:

Any book suggestions on advanced PHP? I've searched Amazon and found the "Bible" for Dreamweaver MX 2004, and some for advanced PHP web design with Dreamweaver.
 
Hi there

i've never used a book on php, i'm afraid. i assume that i should be able to achieve my aims using php and then spend time on php.net when i run into difficulties.

one thing i have learned from hard experience is nearly always the problems that i have, have been solved multiple times and often made into robust PEAR packages.

this forum sees a lot of questions about authentication and access control and i guess this is because it is a good script challenge for people to learn from. although i have built and use my own i'd recommend to others that they investigate PEAR and if they really want to learn some good quality programming, examine the source of the pacakges to see how they are put together. there are a number of great authentication and user handling scripts that are maintained within PEAR (pear.php.net)

i don't mean to put you off books on the subject - i just don't know of any good ones to recommend.

on the subject of dreamweaver - i have to admit to using this myself but i often ask myself why. it's not great for coders (not better than any number of the freeware code programs out there) and i don't do much web design myself so rarely use the design features. I am not a fan of the server behaviours within dreamweaver as i have found them to be too restrictive or at least different to the way that i like things done!

if you're interested in a copy of my login script, let me know.

 
jpadie and Bogiemon!

That's what I like about your replies....the different ideas and perspectives. This is great...thanks a lot!

jpadie...sure, I'll take a shot at your script. I'm a bit new, so it will be nice to look at and learn from it.

Bogiemon....thanks for the book recommendation. I've been checking out Amazon for some ideas. PHP.net has an e-mail tutorial I'm going to check out for a possible solution to a "click to subscribe to these monthly newsletters" application I'm doing. I'm not too sure if the host, can / has something already. I've emailed their support team.

Thanks again!
 
after thinking about it some more i realised that my potted script has heavy reliance on two pear classes: html_quickform and db. this would be a steep learning curve!

so i've written a quick replacement without reliance on external classes. i haven't fully tested it and in particular i haven't included any string escape code for handling form submits.

you can get hold of it at
have fun
justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top