当前位置:首页 > ASP教程 > 应用技巧

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

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

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!

相关教程推荐

其他课程推荐