手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 过滤非法字符函数
asp 过滤非法字符函数
摘要:0thenstr=Replace(str,badword(i),"***")EndIfNextcutbadchar=strEndFuncti...

<%

Function cutbadchar(str)

badstr="不|文|明|字|符|列|表|格|式"

badword=split(badstr,"|")

For i=0 to Ubound(badword)

If instr(str,badword(i)) > 0 then

str=Replace(str,badword(i),"***")

End If

Next

cutbadchar=str

End Function

Response.Write cutbadchar("中国不阿斗发射点发明")

%>

【asp 过滤非法字符函数】相关文章:

asp中正则表达式过滤html代码函数

asp下过滤非法的SQL字符的函数代码

ASP常用函数:CLngIP()

asp 字符串连接数据库方法

asp 判断数字是否整形

asp 获取地址栏参数代码

asp 过滤简单html代码程序

asp中对ip进行过滤限制函数

FSO文件对象介绍及常用函数

[整理版]ASP常用内置函数

精品推荐
分类导航