D
Dakanali
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>
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>