可以做个判断如:
Flot="垃圾 | 很垃圾"
Function ChkWord(str)
cout = Split(ain," | ")
ChkWord = true
On Error Resume Next
For i=0 To Ubound(cout)
If Instr(lcase(Str),cout(i)) <> 0 Then
ChkWord = False
Exit Function
End If
Next
End Function
If Not ChkWord(Flot) Then Response.Write "您提交的留言含有非法字符"