?? epass.asp
字號:
<% Response.Buffer=false %>
<!--#include file="inc/dbconn.inc"-->
<% uname=request("uname")
email=request("email")
usertype=request("usertype")
if usertype="geren" then
set rs=server.createobject("adodb.recordset")
sql="select * from geren where uname='"&uname&"' and email='"&email&"'"
rs.open sql,conn,3,3
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('沒有找到相應(yīng)的用戶或email地址,請重新輸入!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
set mail=server.createobject("CDONTS.NEWMAIL")
mail.to=rs("email")
mail.from="lianchuang@mail.wzptt.zj.cn"
mail.subject="來自樂清人才網(wǎng)絡(luò)的郵件:你的密碼"
mail.body="感謝你使用樂清人才網(wǎng)絡(luò)。你的用戶名是:"+rs("uname")+" 你的密碼是:"+rs("pwd")
mail.send%>
<div align="center">
<center>
<table border="0" cellpadding="2" cellspacing="0" width="770">
<tr align="center">
<td width="100%" height="50"> </td>
</tr>
<tr align="center">
<td width="100%">你的密碼已經(jīng)寄出,請查看你的郵箱。</td>
</tr>
<tr align="center">
<td width="100%" height="10"> </td>
</tr>
<tr align="center">
<td width="100%"><a href="javascript:window.close()">關(guān)閉窗口</a></td>
</tr>
</table>
</center>
</div>
<%end if
else
set rs=server.createobject("adodb.recordset")
sql="select * from danwei where loginmc='"&uname&"' and email='"&email&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write"<SCRIPT language=JavaScript>alert('沒有找到相應(yīng)的email地址,請重新輸入!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
set mail=server.createobject("CDONTS.NEWMAIL")
mail.to=rs("email")
mail.from="lianchuang@mail.wzptt.zj.cn"
mail.subject="來自樂清人才網(wǎng)絡(luò)的郵件:你的密碼"
mail.body="感謝你使用樂清人才網(wǎng)絡(luò)。你的用戶名是:"+rs("loginmc")+" 你的密碼是:"+rs("loginmm")
mail.send%>
<div align="center">
<center>
<table border="0" cellpadding="2" cellspacing="0" width="770">
<tr align="center">
<td width="100%" height="50"> </td>
</tr>
<tr align="center">
<td width="100%">你的密碼已經(jīng)寄出,請查看你的郵箱。</td>
</tr>
<tr align="center">
<td width="100%" height="10"> </td>
</tr>
<tr align="center">
<td width="100%"><a href="javascript:window.close()">關(guān)閉窗口</a></td>
</tr>
</table>
</center>
</div>
<%end if
end if
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -