信息发布→ 登录 注册 退出

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

发布时间:2026-01-11

点击量:
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
标签:# CheckCanSubmit  # glword  # lt  # split  # Response  # window  # history  # alert  # Write  # script  # vb  # 字符  # brush  # pre  # class  # str  # http  # www  # connts  # Dim  # connt  # 评论  
在线客服
服务热线

服务热线

4008888355

微信咨询
二维码
返回顶部
×二维码

截屏,微信识别二维码

打开微信

微信号已复制,请打开微信添加咨询详情!