ASP中限制某些字符留言评论
程序员文章站
2022-07-02 18:15:23
sub checkcansubmit(str)
dim connt,connts
connt="六合彩,免费电影,安利,http,www,
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