国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > VBScript > 正文

防SQL注入的VBSrcipt代碼

2020-06-26 18:06:31
字體:
來源:轉載
供稿:網友
<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("請勿使用除英文字母及數字以外的字符!")  
                    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("請勿使用數字以外的字符!")  
                    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("請填寫5-0之間的數字!")  
                        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
 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新巴尔虎左旗| 奈曼旗| 北辰区| 甘泉县| 方山县| 日喀则市| 龙州县| 缙云县| 嘉鱼县| 西安市| 贡觉县| 慈利县| 株洲县| 马鞍山市| 文成县| 车险| 大石桥市| 汤原县| 普洱| 修武县| 辽中县| 怀化市| 柞水县| 鞍山市| 淮南市| 龙海市| 海宁市| 榆树市| 民丰县| 清原| 扎赉特旗| 邮箱| 临沧市| 天门市| 河东区| 江都市| 屏南县| 鲁山县| 建德市| 河东区| 开阳县|