• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >vbs > 防SQL注入的VBSrcipt代码

防SQL注入的VBSrcipt代码

作者: 字体:[增加 减小] 来源:互联网

通过本文主要向大家介绍了sql防注入代码,php防sql注入代码,java防sql注入代码,asp sql防注入代码,sql注入代码等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
<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 </div>

您可能想查找下面的文章:

  • 防SQL注入的VBSrcipt代码

相关文章

  • VBS中Select CASE的其它用法
  • VBS教程:函数-IsEmpty 函数
  • VBS面向对象编程与Me关键字使用介绍
  • VBS教程:函数-InStrRev 函数
  • 算阶乘的vbs小程序
  • VBS教程:VBscript语句-On Error 语句
  • 用vbs实现cmd功能的代码
  • VBS获取GZIP压缩的HTTP内容的实现代码
  • VBS教程:函数-SetLocale 函数
  • 使用 Iisweb.vbs 暂停网站的方法

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • 用vbs删除前一天创建的备份文件
    • 查看或修改Windows系列系统的序列号的vbs
    • VBS备忘录启动代码
    • 百度空间备份脚本baidublogbak.vbs代码分析
    • 用VBS修改远程桌面3389端口并添加到Windows防火墙的代码
    • VBS InternetExplorer.Application的属性和方法介绍
    • 运行bat时隐藏cmd窗口的方法(bat隐藏窗口 隐藏运行bat文件)
    • Shell.Application执行命令的五种方法小结
    • vbs输入助手执行会调用好多乱的进程
    • vbs正则表达式代码

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有