CheckEmail.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:1k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp" -->
  5. <!--#include file="Cls_user.asp" -->
  6. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  7. <%
  8. Dim Conn,User_Conn
  9. MF_Default_Conn
  10. MF_User_Conn
  11. Dim ReturnValue,Email
  12. Email=Replace(replace(trim(Request("Email")),"'","''"),Chr(39),"")
  13. If Email="" then 
  14. Response.Write("请填写用户名")
  15. Response.end
  16. End if
  17. If len(Email)<6 then 
  18. Response.Write("电子邮件请填写正确")
  19. Response.end
  20. End if
  21. if Email<> "" then
  22. if Instr(Email,"@")=0 or Instr(Email,".")=0then
  23. Response.Write("电子邮件请填写正确")
  24. Response.end
  25. end if
  26. end if
  27. dim Fs_User
  28. Set Fs_User = New Cls_User
  29. ReturnValue = Fs_User.checkEmail(Email)
  30. if ReturnValue then
  31. Response.Write(""& Email &" 此邮件可以注册")
  32. Response.end
  33. Else
  34. Response.Write(""& Email &" 邮件已经被注册")
  35. Response.end
  36. End if
  37. set Fs_User=nothing
  38. %>
  39. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">