asp域名查詢的數(shù)據(jù)庫(kù)接口代碼
asp域名查詢的數(shù)據(jù)庫(kù)接口代碼< on error resume next Private d_exsit Dim Retrieval Dim Doma
asp域名查詢的數(shù)據(jù)庫(kù)接口代碼
<
on error resume next
Private d_exsit
Dim Retrieval
Dim Domain
Dim TakenHTML
Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False, "", ""
.Send
GetURL = .ResponseText
End With
Set Retrieval = Nothing
End Function
Domain = Replace(Request.Form("domain"),"www.","") & "." & Request.Form("ext")
if Domain=".com" or Request.Form("domain")="" then
Response.Write ("")
response.end
end if
’TakenHTML = GetURL("")
TakenHTML = GetURL("=" & Domain)
d_exsit=1
if InStr(TakenHTML,"No entries") > 1 then
Response.Write Domain & "出錯(cuò)了,請(qǐng)返回!
"
else
if InStr(TakenHTML,"No match") > 1 then >
祝賀您,您想注冊(cè)的域名 < =Domain > 還沒有被注冊(cè)
< else >
很抱歉 您想注冊(cè)的域名 < =Domain > 已經(jīng)被注冊(cè)了!請(qǐng)您換個(gè)域名再試
以下是此域名的詳細(xì)注冊(cè)信息
< =dowith() > |
< end if
end if
Function dowith()
Dim lSt