• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Asp 單頁查詢數據庫!

    發表于:2007-06-30來源:作者:點擊數: 標簽:
    !-- #include file="../conn.asp" -- % dim rs,sql,x_name,x_pwd,x_count If Request.Form("do")="ok" Then If Request.Form("user_name")="" Then Response.Write("script Language=@# java script@#alert(@#對不起,請輸入用戶名!\t@#);history.go(-1);/scr
     

    <!-- #include file="../conn.asp" -->
    <%
    dim rs,sql,x_name,x_pwd,x_count
    If Request.Form("do")="ok" Then
    If Request.Form("user_name")="" Then
    Response.Write("<script Language=@#javascript@#>alert(@#對不起,請輸入用戶名!\t@#);history.go(-1);</script>")
    Response.End()
    Else
    x_name = Request.Form("user_name")
    End If
    @#↑ 叛斷用戶名是否為空!
    If Request.Form("user_pwd")="" Then
    Response.Write("<script Language=@#javascript@#>alert(@#對不起,請輸入用戶密碼!\t@#);history.go(-1);</script>")
    Response.End()
    Else
    x_pwd = Request.Form("user_pwd")
    End If
    @#↑ 叛斷用戶密碼是否為空!
    set rs = Server.Createobject("adodb.recordset")
    sql="select * from [user] where user_name=@#"&x_name&"@# and user_pwd=@#"&x_pwd&"@#"
    rs.open sql,conn,1,1
    if not rs.Eof Then
    session("s_name")=rs("user_name")
    session("s_shen")=rs("shenfen")
    session("s_shi")=rs("shijian")
    Response.Redirect "infoin.asp"
    Else
    Response.Write("<script language=@#javascript@#>alert(@#對不起,用戶或密碼錯誤!\t@#);history.go(-1);</script>")
    Response.End()
    End If

    Else
    %>

    <title>--&gt;系統登錄</title>
    <style type="text/css">
    <!--
    .zi {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 10pt;
    }
    -->
    </style>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p> &nbsp; </p>
    <p>&nbsp;</p>   
       
     <table width="320" height="140" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#33CCFF" class="zi">
      <tr>
        <td colspan="2">--&gt;系統登錄</td>
       </tr>
       <form name="form1" method="post" action="index.asp">
      <tr bgcolor="#FFFFFF">
        <td width="72"><div align="center">帳號:</div></td>
        <td width="239">
          <input name="user_name" type="text" id="user_name">
        </td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td><div align="center">密碼:</div></td>
        <td><input name="user_pwd" type="password" id="user_pwd"></td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td>&nbsp;</td>
        <td><input type="submit" name="Submit" value="登 錄">
          <input type="button" name="Submit" value="關 閉" onClick="window.close()">
          <input name="do" type="hidden" id="do" value="ok"></td>
      </tr>
      </form>
      <tr>
        <td colspan="2"><div align="right">v1.00</div></td>
       </tr>
    </table>
    <%End If%>

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>