ASP User Password Retrieve

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>asp User Password Retrieve </title>
<link href= "inc/css tutorial. css" rel= "stylesheet" type= "Text/css"/>

<body>
<table width= "border=" 0 "align=" center "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
&LT;TD width= "190" rowspan= "2" align= "center" ></td >
&LT;TD height= "colspan=" 2 "align=" center "valign=" Bottom ">&nbsp;</td>
</tr>
<tr>
&LT;TD width= "186" align= "center" valign= "Bottom" >&nbsp;</td>
&LT;TD width= "424" align= "center" valign= "bottom" ><table width= "98%" border= "0" cellpadding= "0" cellspacing= "0" >
<tr>
&LT;TD width= "2%" background= "bgpic/4.gif" ></td>"
&LT;TD width= "align=" "Center" valign= "Middle" background= "Bgpic/4.gif" class= "Doman" ><a href= "user.asp" class= "Doman" > Login </a>&nbsp; | &nbsp;<a href= "reg.asp" ><span class= "Doman" > Registration </span></a>&nbsp; | &nbsp;<a href= "findpwd.asp" target= "_blank" class= "style7" > Retrieve password </a>&nbsp; |&nbsp; <a href= "help.html" target= "_blank" class= "Doman" > Use Help </a>&nbsp; |&nbsp; <a href= "http://www.gero.cn" target= "_blank" class= "Doman" > Strength old Home </a></td>
&LT;TD width= "3%" ></tr>
</table></td>
</tr>
</table>
<table width= "border=" 0 "align=" center "cellpadding=" 0 "cellspacing=" 1 "bgcolor=" #0099ff ">
<tr>

5
&LT;TD height= "246" align= "center" bgcolor= "#ECF3F9" ><table width= "780" height= "173" border= "0" cellpadding= "0" >
<tr>
&LT;TD height= "169" align= "center" valign= "Middle" bgcolor= "#FFFFFF" ><table width= "" height= "" 0 "border=" cellpadding= "0" >
<tr>
&LT;TD height= "></td>"
</tr>
</table>
<table width= "574" border= "0" cellpadding= "0" >
<tr>
&LT;TD width= "570" align= "center" bgcolor= "#E9F0F8" class= "Style17" ><table width= "570" border= "0" cellpadding= " 0 "cellspacing=" 0 "bgcolor=" #E9F0F8 ">
<form name= "Form1" Id= "Form1" method= "Post" action= "" > <tr valign= "Top" bgcolor= "#FFFFFF" >
&LT;TD height= "colspan=" 3 "align=" center "class=" Caption_dark "><table width=" 522 "border=" 0 "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
&LT;TD width= "Ten" ></td>"
&LT;TD width= "background=" bgpic/getpass2.gif ><font color= "#fe8301" >1, enter user name </font></td>
&LT;TD width= "One" ></td>"
&LT;TD width= "8" >&nbsp;</td>
&LT;TD width= "Ten" ></td>"
&LT;TD width= "161" background= "Bgpic/getpass2.gif" >2, choose password Questions, fill in the answers </td>
&LT;TD width= "One" ></td>"
&LT;TD width= "One" >&nbsp;</td>
&LT;TD width= "Ten" ></td>"
&LT;TD width= "align=" "Center" background= "Bgpic/getpass2.gif" >3, confirmation information </td>
&LT;TD width= "One" ></td>"
&LT;TD width= ">&nbsp;</td>"
&LT;TD width= "Ten" ></td>"
&LT;TD width= "align=" "Center" background= "Bgpic/getpass2.gif" >4, Success </td>
&LT;TD width= "One" ></td>"
</tr>
</table></td>
</tr>
<tr>
&LT;TD width= "194" height= "align=" "Center" > Username:</td>
&LT;TD width= "374" colspan= "2" >&nbsp;&nbsp;
<input name= "name" type= "text" class= "Button3" id= "name"/>
&nbsp;&nbsp;<span class= "BT2" >*</span>&nbsp; Enter user name to retrieve password </td>
</tr>
<tr>
&LT;TD height= "align=" "Center" > Choice Problem:</td>
&LT;TD height= "colspan=" "2" >&nbsp;&nbsp;
<select name= "name1" id= "name1" >
<option value= "What do I have a name for?" "> Do I have a name?" </option>
<option value= "What's my cell phone number?" "> What's My mobile number?" </option>
<option value= "What's my favorite?" "> What is my favorite thing?" </option>
<option value= "What's my wife's name?" "> What's my wife's name?" </option>
<option value= "Where is my home address?" "> Where is my home address?" </option>
<option value= "My birthday?" "> My birthday?" </option>
</select>
&nbsp;&nbsp;<span class= "BT2" >*</span>&nbsp; Choose your question for registration </td>
</tr>
<tr>
&LT;TD height= align= "center" > Fill in the Answers:</td>
&LT;TD height= "colspan=" "2" >&nbsp;&nbsp;
<input name= "name2" type= "text" class= "Button3" id= "name2"/>
&nbsp;&nbsp;<span class= "BT2" >*&nbsp; your registration is the answer to fill out </span></td>
</tr>
<tr>
&LT;TD height= "align=" "Center" > Verification Code:</td>
&LT;TD height= "colspan=" "2" >&nbsp;&nbsp;
<input name= "Name3" type= "text" class= "Button3" id= "Name3" size= "/>"
&nbsp;<span class= "Style7" > according to this input verification code </span>:&nbsp;&nbsp;<span class= "BT2" >*</span><span class= "Style7" > Prevent malicious program attacks </span> </td>
</tr>
&LT;TR align= "center" >
&LT;TD height= "colspan=" 3 "><input name=" Submit "type=" Submit "class=" TOMG "value=" Confirm "/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</form>
</table></td>
</tr>
</table>
<table width= "height=" border= "0" cellpadding= "0" >
<tr>
<td><% Dim Sql,user,an,qn,ver
User=html_encode (Request. Form ("name")
An=html_encode (Request. Form ("name1"))
Qn=html_encode (Request. Form ("name2"))
Ver=html_encode (Request. Form ("Name3"))
' Response.Write (ver)
' Response.End


If Len (user) >4 and Len (an) >4 and Len (QN) >2 and Len Ver =4
If not IsNumeric (ver) Then
Response. Write ("<b><font=red> Authentication code Error!) </b></font> ")
Response.End
End If
Sql= "SELECT * from Reg where username= '" &user& "' and pwd_q= '" &an& "' and pwd_an= '" &qn& "'"
Call Opensql ()
Set Sqlrs=sqlcn.execute (SQL)
If Sqlrs.eof Then
Response.Write "<div Align=center><b><font color=red> The information entered is incorrect! </b></font></div> "
Else
Response.Write ("<div align=center> your password is: <b><font color=red>" &sqlrs ("password") & "</b ></font> please remember your password! </div> ")
End If
End If

%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>

</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.