473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Sql Query when forgot password

Hello all respective fellows, i have a assignment where i need to create website that allow customer to order online with theusername and password.

My situation is when user forgot the password, then he may click request password.

Then, i need to compare the username enter by the user and the database and send his password through email.


This is what i have done so far.

<html>
<body>

set conn=Server.CreateObject("ADODB.connection")
conn provider="Microsoft.Jet.OLEDB.4.0"
conn.open "C:\Documents and Settings\tp012654\Desktop\mcdonald\member_database .mdb"


select if username==vsername from registerstep1
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Password Recover"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

</body>
</html>

I hope you can help me.

Your help is greatly appreciated by me and others.
Oct 3 '07 #1
1 1777
jhardman
3,406 Expert 2GB
Peter,

this looks good so far. What part is giving you trouble?

Jared
Oct 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: dogu | last post by:
Noob alert. Code is below. File is saved as a .php. What I'm trying to do: User uses 'select' box drop down list to pick a value. Value ($site) is derived from a db query. This works fine....
8
by: Ini | last post by:
Hi, I forgot my password for an Access-database. Is there any way to open it or export structure and / or data? I'm using Access97. Thanks
2
by: Francis Debrabandere | last post by:
Hi all, I'm a beginner in ms access, and I'm working on my first real application. But to finish it up I'm facing a problem. I'm not able to solve and maybe someone can help me. I have made a...
5
by: Mark | last post by:
Hi Guru's, I have a login form which when an incorrect username or password is entered more then 3 times, a mail is sent containing the xp username, the username they have tried to open the...
2
by: kuldeep singh sethi | last post by:
Hey Friends, I have searched in google to get information about "forgot password ?". but didn't satisfy.i need help for this code. i want code for forgot password. I have no idea how to send...
0
by: kuldeep singh sethi | last post by:
Hi All I want to know that when any user forgot the password as yahoo mail, then a button which is said to click on that to know password. so i want to know that code in C# that how...
1
by: groupie | last post by:
Hi, I'd like to know how to implement the "Forgot Password" feature on many websites which require a login, exactly like this ebay example:...
6
by: lightyagami | last post by:
how to code the "forgot your password?" in php??? i have a login account where i want to display also the "forgot your password?" but i dont know how to code it in PHP...can u help me?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.