手机
当前位置:查字典教程网 >编程开发 >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 非法字符过滤函数

ASP常用函数:CLngIP()

asp 过滤数组重复数据

ASP常用函数:Str4Js()

asp 日期格式化函数

Asp 函数介绍

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

asp 字符串连接数据库方法

asp从缓存读数据实例

asp 常用函数用法

精品推荐
分类导航