asp 遍历问题 声明的变量与参数的关系
Dim l_get, l_get2, n_get, regex, IP
For Each n_get in values
For Each l_get in values
l_get2 = values(l_get)
Set regex = New regexp
regex.Ignor
Function StopHacker(values, re) Dim l_get, l_get2, n_get, regex, IP For Each n_get in values For Each l_get in values l_get2 = values(l_get) Set regex = New regexp regex.IgnoreCase = True regex.Global = True regex.Pattern = re If regex.Test(l_get2) Then IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If IP = "" Then IP = Request.ServerVariables("REMOTE_ADDR") End If slog("操作IP:" & ip & " 操作时间:" & Now() & " 操作页面:" & Request.ServerVariables("URL") & " 提交方式:" & Request.ServerVariables("Request_Method") & " 提交参数:" & l_get & " 提交数据:" & l_get2 & " ")
End Function For Each n_get in values这一句怎样理解ASP 变量,我觉得n_get只是一个变量,跟values有什么关系? (编辑:威海站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |