佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > 防SQL注入的VBSrcipt代碼

防SQL注入的VBSrcipt代碼

熱門標簽:鐵路電話系統(tǒng) 智能手機 網(wǎng)站文章發(fā)布 服務器配置 呼叫中心市場需求 檢查注冊表項 銀行業(yè)務 美圖手機
script language="vbscript"> 
        function checkstr(strname) 
            strn=trim(strname.value) 
            str=trim(strname.value) 
            for i=1 to len(str) 
                strcheck=asc(left(str,1)) 
                if not ((strcheck=122 and strcheck>=97) or (strcheck=90 and strcheck>=65) or (strcheck=57 and strcheck>=48)) then 
                    msgbox("請勿使用除英文字母及數(shù)字以外的字符!") 
                    strname.value = left(strn,i-1) 
                    strname.focus 
                    exit for 
                end if 
                str=Right(str,len(str)-1) 
            next  
        end function 
        function checknum() 
            checknum=true 
            if not document.all.txtMailSize.value="" then 
                if not IsNumeric(document.all.txtMailSize.value) then 
                    msgbox("請勿使用數(shù)字以外的字符!") 
                    document.all.txtMailSize.value="" 
                    document.all.txtMailSize.focus 
                    checknum=false 
                else if document.all.txtMailSize.value>5 or document.all.txtMailSize.value0 then 
                        msgbox("請?zhí)顚?-0之間的數(shù)字!") 
                        document.all.txtMailSize.value="" 
                        document.all.txtMailSize.focus 
                        checknum=false 
                    end if 
                end if 
            end if 
        end function 

        function checkupdate() 
            checkupdate=true 
            if document.all.txtU_name.value="" or document.all.txtMailSize.value=""  then 
                msgbox("您填寫的信息不完全!")         
                checkupdate=false 
            end if 
        end function 
        function compare() 
            compare=true 
            if not document.all.txtRePsw.value =document.all.txtPsw.value then 
                msgbox("兩次密碼輸入不一致!") 
                document.all.txtRePsw.focus 
                compare=false 
            end if 
        end function

標簽:長治 新疆 紅河 滄州 上海 河南 沈陽 樂山

巨人網(wǎng)絡通訊聲明:本文標題《防SQL注入的VBSrcipt代碼》,本文關鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    安阳县| 唐河县| 白山市| 安庆市| 丽江市| 武川县| 边坝县| 襄垣县| 顺义区| 赤峰市| 莱芜市| 翁牛特旗| 兰州市| 扬中市| 葫芦岛市| 寿宁县| 建水县| 翁牛特旗| 宁远县| 双桥区| 宁陵县| 桓仁| 舒兰市| 菏泽市| 黑水县| 鄂温| 东乡| 蛟河市| 永平县| 湖南省| 鲁山县| 共和县| 邯郸县| 乃东县| 泰安市| 滨海县| 南乐县| 海口市| 安吉县| 京山县| 游戏|