国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

asp版域-名查詢的數據庫接口

2019-11-02 14:57:22
字體:
來源:轉載
供稿:網友

 <%  
  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  ("<script>alert('看看您什么忘記填寫了?沒有填寫域名吧?');javascript:history.back(1)</script>")  
  response.end  
  end  if  
  'TakenHTML  =  GetURL("http://www.internic.net/cgi/whois?whois_nic="&Domain&"&type=domain")  
  TakenHTML  =  GetURL("http://www.china-channel.com/checkdomain.asp?action=whois&domain="  &  Domain)  
  d_exsit=1  
  if  InStr(TakenHTML,"No  entries")  >  1  then  
  
  Response.Write  Domain  &  "出錯了,請返回!<br><br>"  
  else  
  if  InStr(TakenHTML,"No  match")  >  1  then  %>  
  祝賀您,您想注冊的域名  <%  =Domain  %>  還沒有被注冊<p><a  href="#"  >  
  點擊這里,開始注冊您的域名</a></p></font>  
  <%  else  %>  
  <font  color="red"><br>很抱歉</font>  您想注冊的域名  <%  =Domain  %>  已經被注冊了!<p></p>請您換個域名再試</font>  
  <form  method="post"  action="search.asp"  name="checkdomain"  id=Form1>  
  www.<input  type="text"  name="domain"  id=Text1>  
  <select  name="ext"  id=Select1>  
  <option  value="com"  selected>.com</option>  
  <option  value="net">.net</option>  
  <option  value="org">.org</option>  
  <option  value="com.cn">.com.cn</option>  
  <option  value="net.cn">.net.cn</option>  
  <option  value="org.cn">.org.cn</option>  

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 长兴县| 泾川县| 鄯善县| 康平县| 福州市| 墨竹工卡县| 福建省| 治多县| 新干县| 龙江县| 绥滨县| 锡林郭勒盟| 盐山县| 改则县| 马龙县| 天柱县| 赤水市| 大宁县| 渭源县| 东安县| 宜良县| 五峰| 荔浦县| 渑池县| 陇西县| 庆阳市| 霍城县| 曲靖市| 东乡县| 平潭县| 玉田县| 西吉县| 集贤县| 呼和浩特市| 文山县| 同仁县| 普兰县| 丰顺县| 隆安县| 澄城县| 炎陵县|