i have a problem with xmlserverHTTP how can check 2 different stat

Discussion in 'ASP General' started by Dakanali, Aug 17, 2004.

  1. Dakanali

    Dakanali Guest

    I have a previous form which user search if there is a domain name. Give the
    domain name and in xml send the data from
    domainName=rewuest.form("domainname") to the specify url which is below and i
    want to check if the domain there is to give me the right results and if not
    there is in another form below give me the results...i want to check if the
    domainName in text which returns me the url has the results and response
    them..How can i do it?

    please help me how can i do like this.....i am confused!!!

    <%if (xml.Document.contain(domainName)) then %>
    ......
    <%esle%>
    .......
    <%end if%>

    tha checkdomain.asp page is .....


    <body>


    <h1>here is the results from your domain which you have choose.</h1>




    <%
    Dim strHost, strReferer
    strHost = Request.ServerVariables("HTTP_HOST")

    strReferer = Request.ServerVariables("HTTP_REFERER")

    domainName=Request.Form("domainname")

    Response.Buffer = true

    Dim objXMLHTTP, xml, text

    'Set xml=Server.CreateObject ("Microsoft.XMLHTTP")
    'Or if this dosn't work then try :
    Set xml=Server.CreateObject("MSXML2.ServerXMLHTTP")

    xml.Open "GET",
    "http://grwhois.ics.forth.gr:800/plainwhois/plainWhois?domainName=" &
    domainName, false

    xml.Send

    text = xml.ResponseText

    'response.write(text)
    Set xml=Nothing

    %>

    <%if not domainName=true then%>
    <form action="adddomain.asp" method="post" name="selectdomain"
    id="selectdomain" onSubmit="return anyone()">

    <table border="1" cellpadding="3" cellspacing="1" width="70%">
    <tr>
    <td width="45%" align="center">Domain</td>
    <td width="45%" align="center">Status</td>
    <td width="10%" align="center">Register</td>
    </tr>
    <tr>
    <td><%Response.Write(domainName)%></td>
    <td align="center"><%response.Write "not in use"%>
    </td>
    <td align='center'><input type='checkbox' checked name='dom1'
    value="<%=domainName%>"></td>
    </tr>
    </table>

    <div align="center"><br>
    <input type="submit" name="check" value="REgister Domain">
    </div>
    </form><br><br> Τhe domain which is chosen is not in use.<br>You can
    register the specify domain,click the button [Register Domain].
    <%else if domainName=true then%>
    <form action="adddomain.asp" method="post" name="selectdomain"
    id="selectdomain" onSubmit="return anyone()">

    <table border="1" cellpadding="3" cellspacing="1" width="70%">
    <tr>
    <td width="45%" align="center">Domain</td>
    <td width="45%" align="center">Status</td>
    <td width="10%" align="center">Register</td>
    </tr>
    <tr>
    <td><%Response.Write(domainName)%></td>
    <td align="center"><%response.Write "Is used"%></td>
    <td align='center'><font color='#FF0000'>X<input type='button' name='whois'
    value='Whois' onclick="javascript:
    window.open('whois.asp?domain=<%=domainName%>','whois','scrollbars=1,
    top=100, left=100, width=400, height=350, status=0')"></font></td>
    </tr>
    </table>
    <div align="center"><br>
    <input type="submit" name="check" value="Register Domain" disabled>
    </div>
    </form><br><br> Τhe domain which is chosen is used.<br>
    You could search again for a new domain,click [New Ckeck Domain].
    <%end if end if%>
    <br><br><a href="registertest.asp">New Check Domain</a>
    Dakanali, Aug 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven T. Hatton
    Replies:
    3
    Views:
    9,695
    Pete Becker
    Jun 2, 2005
  2. Patrick Useldinger

    os.stat('<filename>')[stat.ST_INO] on Windows

    Patrick Useldinger, Feb 27, 2005, in forum: Python
    Replies:
    6
    Views:
    1,155
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Mar 3, 2005
  3. Magesh
    Replies:
    3
    Views:
    431
    Gordon Burditt
    Oct 5, 2007
  4. Rolf Krüger
    Replies:
    2
    Views:
    607
    Ian Collins
    Mar 12, 2008
  5. ruck
    Replies:
    10
    Views:
    1,258
Loading...

Share This Page