• 网站首页
  • 涉税提问
  • 财税法规
  • 税收筹划
  • 优惠政策
  • 案例解析
  • 培训中心
  • 财富工具
  • 房产专题
  • 会计范文
中财税帮助

去向导航

  • 常见问题
  • 费用核算
  • 负债核算
  • 会计报表
  • 利润核算
  • 收入核算
  • 外汇核算
  • 资本核算
  • 资产核算
  • 更多...

常用分类

  • 浏览器
  • Windows
  • 音乐/电影
  • 网站开发
  • 游戏
  • 办公自动化

中财税帮助系统

2008-11-21

欢迎您登陆并使用中国财税咨询中心为您免费提供的资料,交流,学习为一体的平台!

如果您在使用中遇到什么问题,请您不要吝啬,一定要写信给我们!!

Email:Shellapi@126.com 期待您的来信,或指导批语!

帮助内难免有收集的资料,如果侵犯了您的仅力,请您来信告知,我们马上删除或更新处理!

文章搜索--请输入关键词:

新手初练:用ASP做一个域名查询系统

更多2008-11-21 日更新内容!
    开发这样一个域名查询系统其实是一件很容易的事情,只要我们能够让使用者进行查询后得出结果,看看自己输入的域名是不是被别人占用了就可以,如果没有被占用我们就可以自行去申请了。

    <%
    On Error Resume Next
    Server.ScriptTimeOut=9999999
    Function getHTTPPage(Path)
    t = GetBody(Path)
    getHTTPPage=BytesToBstr(t,"GB2312")
    End function
    Function GetBody(url)
    on error resume next
    Set Retrieval = CreateObject("Microsoft.XMLHTTP")
    With Retrieval
    .Open "Get", url, False, "", ""
    .Send
    GetBody = .ResponseBody
    End With
    Set Retrieval = Nothing
    End Function

    Function BytesToBstr(body,Cset)
    dim objstream
    set objstream = Server.CreateObject("adodb.stream")
    objstream.Type = 1
    objstream.Mode =3
    objstream.Open
    objstream.Write body
    objstream.Position = 0
    objstream.Type = 2
    objstream.Charset = Cset
    BytesToBstr = objstream.ReadText
    objstream.Close
    set objstream = nothing
    End Function
    %>
    <%
    if request("domain")<>"" then
    'url="http://panda.www.net.cn/cgi-bin/Whois.cgi?domain="&request("domain")&"&"&request("root")&"=yes&work=whois&referer=http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")
    url="http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")&"&ext="&request("root")
    wstr=getHTTPPage(url)

    'response.write Instr (wstr,"可以注册")
    if instr(lcase(wstr),"已被注册的域名")>0 then
    body="域名已经被注册"
    elseif instr(lcase(wstr),"未被注册的域名")>0 then
    body="域名未被注册"
    else
    body="网络延迟,请重新查找"
    end if
    end if
    %>

    <table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
    <tr>
    <td height="26" bgcolor="efefef">域名查询系统:<% if request("domain")>"" then response.Write(request("domain")&"."&request("root")&body) end if%></td>
    <tr>
    <td bgcolor="#FFFFFF"><form name="form1" method="post" action=""><table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>

    <td height="36"> <div align="center">www.
    <input type="text" name="domain">
    <select name="root" id="select">
    <option value="cn" selected>.cn</option>
    <option value="com">.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="gov.cn">.gov.cn</option>
    </select>
    </div></td>

    </tr>
    <tr>
    <td height="35">
    <div align="center">
    <input type="submit" name="Submit" value=" 查 询 ">
    </div>
    <div align="center"></div></td>
    </tr>
    </table></form></td>
    </tr>
    </table>
    <p align="center">&nbsp;</p>
    <table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
    <tr>
    <td height="42" bgcolor="#FFFFFF">
    <FORM name=search_form action='http://search.sohu.com/web' method=get target=_blank>
    <div align="center">
    <input type="hidden" name="pid" value="hljec">
    <input name="query" type="text" style="font-size:14px;width:150" value="好域名">
    <input type="submit" name="ss" value="查看" onclick=document.search_form.action='http://search.sohu.com/web' style="font-size:14px;width=40;height=20">
    &nbsp;</div>
    </FORM></td>
    </tr>
    </table>
Site designed by 中国财税咨询中心