防SQL注入的VBSrcipt代碼
<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("請(qǐng)勿使用除英文字母及數(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("請(qǐng)勿使用數(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("請(qǐng)?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
欄 目:vb
下一篇:用VBS實(shí)現(xiàn)腳本結(jié)束進(jìn)程與防止進(jìn)程啟動(dòng)
本文標(biāo)題:防SQL注入的VBSrcipt代碼
本文地址:http://mengdiqiu.com.cn/a1/vb/7920.html
您可能感興趣的文章
- 01-10VBS腳本病毒原理分析與防范
- 01-10防止網(wǎng)頁腳本病毒執(zhí)行的方法-from web
- 01-10用VBS實(shí)現(xiàn)腳本結(jié)束進(jìn)程與防止進(jìn)程啟動(dòng)
- 01-10用vbs實(shí)現(xiàn)防止計(jì)算機(jī)使用 LMHosts 文件
- 01-10用vbscript防止本地用戶更改其密碼
- 01-10dvbbs 8.2 SQL Injection注射漏洞分析
- 01-10用VBS修改遠(yuǎn)程桌面3389端口并添加到Windows防火墻的代碼
- 01-10VBS取QQ或TM自動(dòng)登錄代碼并防止關(guān)閉的腳本
- 01-10getSQLinfo.vbs 獲得SQL數(shù)據(jù)/日志空間使用情況的腳本
- 01-10利用sql語句復(fù)制一條或多條記錄


閱讀排行
- 1C語言 while語句的用法詳解
- 2java 實(shí)現(xiàn)簡(jiǎn)單圣誕樹的示例代碼(圣誕
- 3利用C語言實(shí)現(xiàn)“百馬百擔(dān)”問題方法
- 4C語言中計(jì)算正弦的相關(guān)函數(shù)總結(jié)
- 5c語言計(jì)算三角形面積代碼
- 6什么是 WSH(腳本宿主)的詳細(xì)解釋
- 7C++ 中隨機(jī)函數(shù)random函數(shù)的使用方法
- 8正則表達(dá)式匹配各種特殊字符
- 9C語言十進(jìn)制轉(zhuǎn)二進(jìn)制代碼實(shí)例
- 10C語言查找數(shù)組里數(shù)字重復(fù)次數(shù)的方法
本欄相關(guān)
- 01-10下載文件到本地運(yùn)行的vbs
- 01-10飄葉千夫指源代碼,又稱qq刷屏器
- 01-10SendKeys參考文檔
- 01-10什么是一個(gè)高效的軟件
- 01-10VBS中的正則表達(dá)式的用法大全 &l
- 01-10exe2swf 工具(Adodb.Stream版)
- 01-10VBS中SendKeys的基本應(yīng)用
- 01-10用VBSCRIPT控制ONSUBMIT事件
- 01-10VBScript教程 第十一課深入VBScript
- 01-10VBScript語法速查及實(shí)例說明
隨機(jī)閱讀
- 01-10使用C語言求解撲克牌的順子及n個(gè)骰子
- 08-05dedecms(織夢(mèng))副欄目數(shù)量限制代碼修改
- 01-10SublimeText編譯C開發(fā)環(huán)境設(shè)置
- 01-11ajax實(shí)現(xiàn)頁面的局部加載
- 01-11Mac OSX 打開原生自帶讀寫NTFS功能(圖文
- 08-05織夢(mèng)dedecms什么時(shí)候用欄目交叉功能?
- 08-05DEDE織夢(mèng)data目錄下的sessions文件夾有什
- 01-10delphi制作wav文件的方法
- 01-10C#中split用法實(shí)例總結(jié)
- 04-02jquery與jsp,用jquery