/    Sign up×
Community /Pin to ProfileBookmark

comparing with the database

hi all,

I am trying to develop script for “forgot password”….

In this, if the user forgot the password he should provide the email id & username which he gave already in the database.
1)The script should validate the username and verify the existance in database
2)should compare the given email id & email id that is on the particular username
3)if both email id matches admin should sent password to his mail id…..

can anybody please help me to write code for this….
thanks in advance….
jeny

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@yaliniMay 30.2006 — hahahahaha....hah.aha.h
Copy linkTweet thisAlerts:
@jcampbeMay 31.2006 — do you use mysql or another?

*Found in another post of yours you use mysql
Copy linkTweet thisAlerts:
@jcampbeMay 31.2006 — First you should put an unique index on the username column;

CREATE UNIQUE INDEX [unique index name] ON [table] ([column])

Then extract the information using the username/email give and verify it.

[Not even gonna attempt this one, don't use mysql often enough]

Then you either print the password, or send it to them by email.
×

Success!

Help @jeny spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...