html5中文学习网

您的位置: 首页 > 网络编程 > ASP.NET » 正文

精品:Asp3.0中email有效性验证_.NET教程_编程技术

[ ] 已经帮助:人解决问题
asp3
dim email
dim status
dim emaildata
dim LicenseKey

licensekey = 0
if Request.Form.Count > 0 then
        email = Request.Form("email")
    
          Dim oXMLHTTP      
      
      Set oXMLHTTP = server.CreateObject("Msxml2.ServerXMLHTTP")

      oXMLHTTP.Open "POST", _
                    "http://ws.cdyne.com/emailverify/ev.asmx/VerifyEmail", _
                    False
      oXMLHTTP.setRequestHeader "Content-Type", _
                                "application/x-www-form-urlencoded"
      oXMLHTTP.send "email=" & server.URLEncode(email) & "&LicenseKey=" & server.URLEncode(LicenseKey)
      Response.Write oxmlhttp.status
      If oXMLHTTP.Status = 200 Then
          Dim oDOM
          Set oDOM = oXMLHTTP.responseXML
          Dim oNL
          Dim oCN
          Dim oCC
          Set oNL = oDOM.getElementsByTagName("ReturnIndicator")
          For Each oCN In oNL
            For Each oCC In oCN.childNodes
                Select Case LCase(oCC.nodeName)
                    Case "responsetext"
                        emaildata = emaildata & "CodeTxt: " & occ.text & "<br>"
                    Case "responsecode"
                        emaildata = emaildata & "Code: " & occ.text & "<br>"
                End Select
            Next
          Next
          if status = "" then status = "OK"

          Set oCC = Nothing
          Set oCN = Nothing
          Set oNL = Nothing
          Set oDOM = Nothing
          
          
          
      
      else
        Status = "Service Unavailable. Try again later"
      End If
      Set oXMLHTTP = Nothing
    
end if
9hAHTML5中文学习网 - HTML5先行者学习网
9hAHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助