Send user Password by Email if User forgets
Allow the your Users the opportunity to receive their Passwords by Email if they forget by submitting their Usernames. Once the User submits his or her registered Username, an email is automatically sent to the Email the Username registered with.
|
|
|
|
Forgotten
Password- Part 1-
Automatically Send Users their Passwords via Email upon request if
it has been forgotten |
I know you are wondering about something. OK wait. Let me guess. Is
it How do I send Users their Passwords automatically if they forget
it? Am I right. Alright. That isn't a problem. If you got through
Level 3 Level 4 is a piece of cake. But don't get too hungry until
you finish up this tutorial.
Alright check it out, do you remember that page we made called registerconfirm.asp
(the page the registrant is sent to upon submitting information, it
displays some personal information and sends out an email to the registrant's
email address)? That page basically contains all we need as long as
we make some adjustments. Trust me this is easy. If it isn't, email
me and curse me out. Let me stop while I'm ahead, o)
We will make a page where the forgetful User submits his or her UserName,
that goes to anothe rpage that finds the UserName in the database,
sends an email to the email address on file. We also want to make
another page that the User is redorected to if he types in a UserName
that has not been registered. 3 Pages
Step 1:
- We want to make the first page where the User will enter his or
her User Name through a form. Very simple. Make a form with one textfield
and a button. NAME THE TEXTFIELD USERNAME. sorry for yelling.
Set the action of the form to go to the next page we will make, the
confirmation page that will trigger the email. (mine will be called
forgotpassword1.asp) Set the method to POST.
I highlighted my form in the above image so we can see the settings.
I save this page as forgotpassword.asp. You can leave this page alone
now or upload it to your server (ctrl+shift+U to upload)
Step 2:
- We are going to make a new page with a recordset. But we have a
page already with almost the exact information we need, with the recordset
and Jmail code on it. It
is the confirmation page upon registration. Open that page up in UD.
Mine is called registerconfirm.asp. (check Step 2 of Part 4 of the
Beginner's Registration tutorial) for the recordset information
Now do a SAVE AS and name it forgotpassword1.asp. PLEASE do not write
over your page by mistake. SAVE AS a new page called forgotpassword1.asp.
Now we need to adjust this page a bit.
- First off, set the page up itself. Remove all the dynamic text from
view. BUT do not delete them from server behaviors just remove them
from being displayed on the page. Highlight the text and backspace.
Write your message, here is mine:
Be creative, set up your graphics and whatever else on the page.
Note:
I am only displaying the UserName. Please bear in mind that you dont
want to display any other personal information on this page. Test
question. Why? Because this page can be requested by anyone. We don't
know who is requesting the password. It could be the actual User or
it could be his jealous ex-girlfriend Cindy from High School.
Remember the page prior. The requester is only submitting the UserName
so we want to send the info. including password to the email address,
not on in this page, or else we would be defeating the purpose. Great!
Step 3:
- Now we need to adjust that recordset. If you double click it, you
should be seeing
the following information from the Register Tutorial
But we want to change this. Go to Part 2 to continue ... |
Go to Part 2
Go Home
Previous Page |
|
Back to Top
|
|
Starting out as a fine artist, Omar Elbaga gradually moved to computer graphic arts. He was particularly amazed by the power of the World Wide Web, so he embarked upon building small-scale sites for fun utilizing HTML and his Art background. Falling in love with designing web pages and its potential, he began a career in web design. Omar has since been in the web development field for several years. With his head in computer books nearly 24 hours a day, Omar moved on to enhance his skills from web design to web programming.
Most of his work involves building database-driven web sites for small companies. Omar is currently running a popular Dreamweaver MX resource site named dmxfire.com
See All Postings From Omar Elbaga >>
Comments
Page layout of Tutorial
Hi all,
i like to print out these tutorials as I find it helps me do things step by step, but while printing out these pages things are not formated correctly, ie text on the right ends up overlapping some of the tutorial, and sometimes the page is cut between important lines. can something be done about this .
Super regards
ah ha
RE: Page layout of Tutorial
Hi,
is that only this tutorial or all tutorials generally on udzone that you are having problems printing with?
RE: Page layout of Tutorial
Very convoluted
I've just worked through this tutorial; it does exactly what it says on the tin, but its very convoluted; I had to jump to several other pages (for example, to find out what JMail was). It assumes that you are working through a series of tutorials in order; most people (like me) won't..they'll have a single problem, and want a single solution.
Other than that, well done!
You must me logged in to write a comment.