Κώδικας: Επιλογή όλων
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>&cf_freewhois&</title>
</head>
<body>
<form method="get">
<font face="Verdana" size="2">www.</font><input type="Text" name="string" style="font: 8pt verdana;">.<select style="font: 8pt verdana;" name="string2">
<option selected>com</option>
<option>net</option>
<option>org</option>
</select>
<br>
<input type="Submit" value="check this domain" style="font: 8 pt verdana;">
</form>
<cfif #parameterExists(url.string)#>
<cfhttp method="GET" url="http://www.netsol.com/cgi-bin/whois/whois?STRING=#url.string#.#url.string2#&SearchType=do">
<cfset thisPage = #cfhttp.filecontent#>
<cfset firstNum = #FindNoCase("<!--ingoes pre-->", thisPage)#>
<cfset lastNum = #FindNoCase("<!-- out goes pre-->", thisPage)#>
<cfset counting = #lastNum# - #firstNum#>
<cfoutput>
<cfif #Mid(thisPage, firstNum, counting)# CONTAINS "Your selection is available for registration">
Its Available!
<cfelse>
#Mid(thisPage, firstNum, counting)#
</cfif>
</cfoutput>
</cfhttp>
</cfif>
</body>
</html>