推荐下天枫常用ASP函数封装,推荐大家使用(9)


        badword=split(badwords,"防")
        If Request.Form<>"" Then
            For Each TF_Post In Request.Form
                For i=0 To Ubound(badword)
                    If Instr(LCase(Request.Form(TF_Post)),badword(i))>0 Then
                        Psql=badword(i)
                        exit function
                    End If
                Next
            Next
        End If
        If Request.QueryString<>"" Then
            For Each TF_Get In Request.QueryString
                For i=0 To Ubound(badword)
                    If Instr(LCase(Request.QueryString(TF_Get)),badword(i))>0 Then
                        Psql=badword(i)
                        exit function
                    End If
                Next
            Next
        End If
    End Function

    '****************************************************
    '函数名:FiltrateHtmlCode
    '作  用:防止生成html代码    
    '参  数:str ----字符串
    '****************************************************

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2629.html