Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 16th, 2004, 05:47 AM
pullover pullover is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 pullover User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to create "forgot password?"

hi all,

may i know if anyone willing to help me out with creating a "forgot password?" thing that user will get an email reply if the forget their password?

i'm using coldfusion mx with dreamweaver mx.


I have try writing this but have the following error:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<cfif isdefined("form.Email")>
<cfquery name="Recordset1" datasource="UserInfo">
</cfquery>
<cfif Recortset1.RecordCount NEQ 0>
SELECT PasswordColumn, EmailColumn, UsernameColumn FROM tblUserInfo WHERE UsernameColumn = '#Form.UserName#' AND
EmailColumn = '#Form.Email#'
<CFMAIL FROM="pullover@starhub.net.sg" TO="#Form.Email#" SUBJECT="Your Password">
Here is your password: #Recordset1.PasswordColumn#
</CFMAIL>
<cfoutput>Your password has been sent to #Form.Email#</cfoutput>
<cfelse>
Sorry, your username does not exist
</cfif>
</cfif>


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Username</td>
<td><input name="UserName" type="text" id="UserName"></td>
</tr>
<tr>
<td>Email</td>
<td><input name="Passwood" type="text" id="Passwood"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
</body>
</html>

thanks for any helps

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > how to create "forgot password?"


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap