SQLUser.asp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%
  2. dim GuGetFlag
  3. dim GuErrorSQLG,GuErrorSQLF
  4. dim RequestKey
  5. dim iGuG,iGuF
  6. GuErrorSQLG=GuErrorSQLGDefault
  7. GuErrorSQLF=GuErrorSQLFDefault
  8. GuErrorSQLG=split(GuErrorSQLG,"|")
  9. GuErrorSQLF=split(GuErrorSQLF,"|")
  10. if Request.ServerVariables("REQUEST_METHOD")="GET" then
  11. GuGetFlag=True
  12. else
  13. GuGetFlag=False
  14. end if
  15. if GuGetFlag then
  16. For Each RequestKey In Request.QueryString
  17. For iGuG=0 To Ubound(GuErrorSQLG)
  18. if Instr(LCase(Request.QueryString(RequestKey)),GuErrorSQLG(iGuG))<>0 then
  19. call GuSQLUserMessage()
  20. end if
  21. Next
  22. Next
  23. else
  24. For Each RequestKey In Request.Form
  25. For iGuF=0 To Ubound(GuErrorSQLF)
  26. if Instr(LCase(Request.Form(RequestKey)),GuErrorSQLF(iGuF))<>0 then
  27. call GuSQLUserMessage()
  28. end if
  29. Next
  30. Next
  31. end if
  32. Sub GuSQLUserMessage()
  33. Response.write "<html>" &vbCrLf
  34. Response.write "<head>" &vbCrLf
  35. Response.write "<title>"&WebSiteName&"</title>" &vbCrLf
  36. Response.write "<meta http-equiv=""Content-Type"" content=""text/html;charset=gb2312"">" &vbCrLf
  37. Response.write "<meta http-equiv=""Content-Language"" Content=""zh-CN"">" &vbCrLf
  38. Response.write "<link type=""text/css"" rel=""stylesheet"" href=""Include/Style.css"">" &vbCrLf
  39. Response.write "</head>" &vbCrLf
  40. Response.write "" &vbCrLf
  41. Response.write "<body>" &vbCrLf
  42. Response.write "" &vbCrLf
  43. Response.write "<font class=""BlackG14"">数据提交失败,表单中包含特殊字符,正在连接到网站首页....</font>" &vbCrLf
  44. Response.write "" &vbCrLf
  45. Response.write "<Script Language=""JavaScript"">" &vbCrLf
  46. Response.write "<!--" &vbCrLf
  47. Response.write "setTimeout(""document.location.href='"&WebSiteURL&"'"",6000);" &vbCrLf
  48. Response.write "//-->" &vbCrLf
  49. Response.write "</Script>" &vbCrLf
  50. Response.write "" &vbCrLf
  51. Response.write "</body>" &vbCrLf
  52. Response.write "</html>" &vbCrLf
  53. Response.end
  54.  
  55. end Sub
  56. %>