Best suggestion is to dig into a package like phpBB that has this feature. Find the relevant code and follow it. Also check out http://www.phpclasses.org for some pre-packaged PHP classes.
I would strongly suggest not do the 'password is emailed to them' as you state in your posting. Instead create a URL with a hash that the user clicks on. This will take them to a page where they should enter their email address and answer some security question from the original signup. IF this is correct information then they are taken to a page where they create a new password (enter new password, enter new password again fields). P --- [EMAIL PROTECTED] wrote: > Hello PHP / MySQL Programmers, > > I have the following problem and I am hoping that someone out there may > offer me a little guidance or advice on how to tackle this problem. I am > sure this is a very simple item for the more experience, venture coders > out there. > > Utilizing a couple of online tutorials and code samples I have created a > membership system for one of my sites. You know the routine. User inputs > specified info, creates a username and password, than receives an email > welcoming them to the site. > > Here is the problem. I would like to create a lost password feature where > the user specifies their email address and their password is emailed to > them out of the database. > > Here are the fields in the database table: > > first_name > last_name > email_address > username > password > user_level > signup_date > last_login > activated > > Could someone give me a sample script or guidance to create this feature? > I am having problems with the PHP and SQL to make this work. > > Thanks - Josh > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
