首页 > 编程 > ASP > 正文

ASP中限制某些字符留言评论

2020-07-27 12:44:06
字体:
来源:转载
供稿:网友
Sub CheckCanSubmit(str) Dim connt,connts connt="六合彩,免费电影,安利,http,www,<a"  connts = split(connt,",")  For each glword in connts   if instr(str,glword)<>0 then   Response.Write("<script>alert('操作非法');window.history.go(-1);</script>")  Response.End()  end if  next End Sub
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表