<!--#include file="Include/Iheeo_Conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
rs.open "select code,yanzheng from bjx_User where username='"&request.Cookies("bjx")("username")&"'",conn,1,3
if rs("yanzheng")=2 then
response.Write "您已经通过验证！"
response.End()
end if
rs.close

if request("action")=1 then
code1=trim(request("code"))
set rs_t=server.createobject("adodb.recordset")
rs_t.open "select code,yanzheng from bjx_User where username='"&request.Cookies("bjx")("username")&"'",conn,1,3

code2=rs_t("code")
if code2=code1 then
rs_t("yanzheng")=2
rs_t.update
rs_t.close
response.Write "验证成功，您可以关闭该页！"
response.End()
else
response.Write "验证码错误，请重新输入！"
end if
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>手机验证码验证</title>
</head>

<body><form action="" method="get">
  <table align="center">
    <tr>
      <td align="center">手机验证码验证</td>
    </tr>
    <tr>
      <td>验证码：
        <input name="code" type="text" id="code"></td>
    </tr>
    <tr>
      <td align="center"><input type="submit" name="Submit" value="提交验证">
          <input name="action" type="hidden" id="action" value="1"></td>
    </tr>
  </table>
</form>
</body>
</html>
