函数ChkPost()
检测用户当前所在服务器名是否存在于来源页面
代码如下:
Function ChkPost()
dim server_v1,server_v2
chkpost=False
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
If Mid(server_v1,8,Len(server_v2))<>server_v2 Then
chkpost=False
Else
chkpost=True
End If
End function


函数PostCheck()
很简单的检测,就是检测提交是否为POST方式
代码如下:
Function PostCheck()
PostCheck=False
If Lcase(Request.ServerVariables("Request_Method"))="post" Then PostCheck=True
End Function

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-07-09
  • 2021-04-03
  • 2022-12-23
  • 2022-01-06
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-12-01
  • 2021-06-13
  • 2022-01-11
  • 2021-12-24
  • 2021-06-08
相关资源
相似解决方案