原创投稿 | 常用软件
您的位置:网站首页 > 源码分享 > ASP程序 > 正文

简单的检查输入email是否合法程序ASP技巧

文章作者:三亚上门维修电脑 发布日期:2012/2/11 9:03:37
function chkEmail(email)
      on error resume next
      dim i,l,pos1,pos2
      chkEmail=true
      if isnull(email) then chkEmail=false:exit function
      pos1= instr(email,"@")
      pos2=instrRev(email,".")
      if not(pos1>0) or not (pos2>0) or pos1>pos2 then             
         chkEmail=false
      end if
      if err.number<>0 then err.clear
  end function

注意:联系我时,请一定说明是从【S】看到的信息,谢谢。

编辑:
联系电话:
联系 QQ:
打电话给我、或者加QQ好友时,请一定说明来自(三亚上门维修电脑)谢谢您!
三亚上门维修电脑