reg_check.asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="conn.asp"-->
  2. <style type="text/css">
  3. <!--
  4. .unnamed1 {
  5. font-size: 12px;
  6. }
  7. -->
  8. </style>
  9. <%
  10. user_id=replace(request("username"),"'","’")
  11. if user_id <> "" then
  12. '开始检测是否已有此用户
  13. set rs = Server.CreateObject("ADODB.Recordset")
  14. sql = "SELECT * FROM yx_user where name= '" & user_id & "'"
  15. rs.open sql,conn,1,1
  16. %>
  17. <%
  18. if not (rs.Bof or rs.eof) then
  19. message="<font color=red><b><div align=center>对不起!</b><br>该登陆帐号已经有人使用<br><br>请选择别的登陆帐号!</div></font>"
  20. else
  21. message="<font color=red><b><div align=center>恭喜您!</b><br><br>该登陆帐号目前暂无人使用</div></font>"
  22. end if
  23. rs.Close
  24. set rs=nothing
  25. else
  26. message="<font color=red><b><div align=center>对不起!</b><br><br>请您填写账号</div></font>"
  27. end if
  28. %>
  29. <HTML>
  30. <HEAD>
  31. <TITLE>注册-检测用户ID</TITLE>
  32. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  33. <meta name="Robots" content="index,follow">
  34. <link rel="stylesheet" href="shop" type="text/css">
  35. </HEAD>
  36. <BODY class="unnamed1">
  37. <%
  38. response.write message
  39. %>
  40. </BODY>
  41. </HTML>