最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

防SQL注入的VBSrcipt代碼

 更新時(shí)間:2007年03月09日 00:00:00   作者:  
<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.value<0 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

相關(guān)文章

最新評論

盐山县| 泰来县| 克拉玛依市| 洛阳市| 都匀市| 巩留县| 潞西市| 江永县| 大冶市| 乳山市| 大丰市| 沙雅县| 桑植县| 仙游县| 江源县| 贡嘎县| 萝北县| 岑巩县| 乐清市| 泸西县| 伊春市| 汉源县| 寿阳县| 会同县| 工布江达县| 延长县| 榆社县| 平邑县| 常德市| 仁布县| 昌图县| 泗水县| 衡山县| 临洮县| 宁化县| 定安县| 元阳县| 扎囊县| 南郑县| 滦南县| 巨鹿县|