解析如何過濾不文明字符_ASP教程
推薦:ASP調(diào)用純真IP庫(kù)實(shí)例% ' ============================================ ' 返回IP信息 Disp_IPAddressData(IP,0) ' ============================================ Function Look_Ip(IP) Dim Wry, IPType, QQWryVersion, IpCounter ' 設(shè)置類對(duì)象 Set Wry = New TQQWry ' 開始搜
<%
Function badchar(str)
badstr="不文明字符列表,用|分開(因發(fā)表時(shí)不能含有那些字符,所以不能貼出。)"
badword=split(badstr,"|")
For i=0 to Ubound(badword)
If instr(str,badword(i)) > 0 then
badchar=True
Exit For
Else
badchar=False
End If
Next
End Function
Function cutbadchar(str)
badstr="不文明字符列表,用|分開(因發(fā)表時(shí)不能含有那些字符,所以不能貼出。)"
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
%>
分享:ASP實(shí)例:ASP實(shí)現(xiàn)空間的最近訪客由于工作關(guān)系,在做一個(gè)用戶空間。要用到空間的最近訪客,見ASP代碼: % username=request.QueryString(username) '地欄中的username,就是自己的用戶名了 if trim(request.Cookies(user_name)) Then '首頁(yè)要判斷該訪問是否登陸,只有登陸的訪問才能記
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
ASP教程Rss訂閱編程教程搜索
ASP教程推薦
- ASP開發(fā)中有用的函數(shù)(function)集合(2)
- ASP腳本的執(zhí)行順序詳細(xì)說(shuō)明
- ASP技巧實(shí)例:使用ASP記錄在線用戶的數(shù)量
- ASP實(shí)現(xiàn)將長(zhǎng)的標(biāo)題用省略號(hào)收尾
- 如何防止access數(shù)據(jù)庫(kù)被下載的代碼
- cookie和session機(jī)制之間的區(qū)別與聯(lián)系
- asp教程中g(shù)et post提交表單有5點(diǎn)區(qū)別
- asp常見錯(cuò)誤分析和解決辦法
- ASP中數(shù)據(jù)庫(kù)調(diào)用中常見錯(cuò)誤的現(xiàn)象和解決
- ASP 3.0高級(jí)編程(三十一)
- 相關(guān)鏈接:
- 教程說(shuō)明:
ASP教程-解析如何過濾不文明字符
。