<%@ Language=VBScript %>
<object runat=server id=conn1 progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<SCRIPT LANGUAGE=javascript>
<!--
  function check()
  {
    if(window.document.login.answer.value=="")
    {
    alert("回答不能为空");
    return false;
    }
  
  }
-->
</SCRIPT>
<%user_name=Request("user_name")
sql="select * from user where user_name='"&user_name&"'"
set rs=server.CreateObject ("ADODB.recordset")
 rs.Open sql,conn1,3
if rs.RecordCount =0 then
	rs.Close
    set rs=nothing
	Response.Redirect "error.asp?cause=0"  'cause=0 表示没有这个会员
else
	question=rs("passwd_question")
end if
%>

      <form name=login action=answer.asp?user_name=<%=user_name%> method=post>
      <table width="100%" border="0" >
        <tr> 
         <TD height=30 align=center><br><FONT color=red size=5><b>身份认证系统</b></FONT></TD>
        </tr>
        </table>
        <table width="100%" border="0" bgcolor="#e6e6e6">
        <tr>
      <td width=100>
      </td>
      <td align=left>
    您的问题：</td>
    <td height=30>
    <%=question%>
    </td>
    </tr>
   <tr>
      <tr>
      <td width=100>
      </td>
      <td align=left>您的回答
    </td>
    <td height=30>
		<input  name="answer">
    </td>
    </tr>
   <tr>
   <td width=100>
      </td>
      <td align=left>
    <input type="submit" style="HEIGHT: 24px; WIDTH: 64px" name="Submit" value="提交" onclick="return check()">
 </td>
    <td height=30>
    <input type=reset value="取消"  id=reset1 name=reset1>
    </td>
    </tr>
      </table>
       </form>
</BODY>
</HTML>
