|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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> </td> <td> </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> </td> <td> </td> </tr> <tr> <td><input type="submit" name="Submit" value="Submit"></td> <td> </td> </tr> </table> </form> </body> </html> thanks for any helps |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > how to create "forgot password?" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|