home *** CD-ROM | disk | FTP | other *** search
/ 202.53.64.216 / 202.53.64.216.tar / 202.53.64.216 / janahitha / AdsForgotPwd.asp < prev    next >
Text File  |  2004-11-26  |  3KB  |  71 lines

  1. <!-- #include file="AdsOpenConn.asp" -->
  2. <%
  3.     if Request.Form.Count=0 then
  4. %>
  5. <html>
  6.     <head>
  7.         <title> Janahitha Ads - Welcome </title>
  8.         <meta name="author" content="Jaladi Venumadhav">
  9.     </head>
  10.     <body bottommargin=0 topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0 bgcolor=#ffffff>
  11.         <!-- #include file="AdsTop.asp" --> 
  12.         <center>
  13.         <table width=100% cellpadding=0 cellspacing=0 border=0 height=100%>
  14.         <tr>
  15.             <td width=150 align=center valign=top bgcolor="#FFFFFF">
  16.                 <!-- #include file="AdsLeft.asp" -->
  17.             </td>
  18.             <td width=630 align=center valign=top bgcolor="#ffffff">
  19.                 <br> <br>
  20.                 <font face=verdana color="#846648"> <b> Forgot Password ?? </b> </font> <br> <br>
  21.                 <form name="forgotpwdform" method=post action="<%=Request.ServerVariables("script_name")%>">
  22.                 <font face=verdana size=2> Your Login Id      </font> <input type=text name="loginid" size=15> <br> <br>
  23.                 <input type=button value="Give Password" onclick="javascript: if(document.forgotpwdform.loginid.value!='') document.forgotpwdform.submit();">
  24.                 </form>
  25.             </td>
  26.         </tr>
  27.         </table>
  28.         </center>
  29.         <!-- #include file="AdsBottom.asp" -->
  30.     </body>
  31. </html>
  32. <%
  33.     else
  34.         sql = "select ClientPassword, ClientEmail from ClientMaster where ClientLoginId='" + replace(trim(Request.Form("loginid")), "'", "''") + "'"
  35.         set rs = server.CreateObject("adodb.recordset")
  36.         rs.Open sql, con, 3, 3
  37.         if rs.EOF then 
  38.             msg = "<font face=verdana size=2 color=red> <b> Invalid Login Id <br> <br> Go <a href='javascript:history.back();'><font color=red>Back</font></a> </b> </font>"
  39.         else
  40.             msg = "<font face=verdana size=2 color=#A01640> <b> Your Password Is Sent To Your Mail Id i.e., <br> <br> " + rs("ClientEmail") + " </b> </font>"
  41.         end if
  42.         rs.Close 
  43.         set rs = nothing
  44. %>
  45. <html>
  46.     <head>
  47.         <title> Janahitha Ads - Welcome </title>
  48.         <meta name="author" content="Jaladi Venumadhav">
  49.     </head>
  50.     <body bottommargin=0 topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0 bgcolor=#ffffff>
  51.         <!-- #include file="AdsTop.asp" --> 
  52.         <center>
  53.         <table width=100% cellpadding=0 cellspacing=0 border=0 height=100%>
  54.         <tr>
  55.             <td width=150 align=center valign=top bgcolor="#FFFFFF">
  56.                 <!-- #include file="AdsLeft.asp" -->
  57.             </td>
  58.             <td width=630 align=center valign=top bgcolor="#ffffff">
  59.                 <br> <br>
  60.                 <%=msg%>
  61.             </td>
  62.         </tr>
  63.         </table>
  64.         </center>
  65.         <!-- #include file="AdsBottom.asp" -->
  66.     </body>
  67. </html>
  68. <%
  69.     end if
  70. %>
  71. <!-- #include file="AdsCloseConn.asp" -->