<?
$whoislist
=array(
'com' => 'http://www.netsol.com/cgi-bin/whois/whois?STRING2=search&SearchType=do&STRING=',
'org' => 'http://www.netsol.com/cgi-bin/whois/whois?STRING2=search&SearchType=do&STRING=',
'net' => 'http://www.netsol.com/cgi-bin/whois/whois?STRING2=search&SearchType=do&STRING=',
'edu' => 'http://www.netsol.com/cgi-bin/whois/whois?STRING2=search&SearchType=do&STRING=',
'gov' => 'http://www.netsol.com/cgi-bin/whois/whois?STRING2=search&SearchType=do&STRING=',
'jp'  => 'http://www.nic.ad.jp/cgi-bin/whois_gate?key=',
'ac'  => 'http://www.nic.ac/cgi-bin/whois?',
'cc'  => 'http://www.nic.cc/cgi-bin/cart?domain=',
'to'  => 'http://www.tonic.to/whois?',
'tv'  => 'http://www.tv/cgi-bin/lookup.cgi?domain=',
'nu'  => 'http://www.nic.nu/cgi-bin/drill.cfm?domainname=',
'jp'  => 'http://whois.jprs.jp/?key='
);
    if (
$_POST[site] != ""){
      
$site $_POST[site];
      while(list(
$tail$server)=each($whoislist)){
        if(
eregi("\.$tail\$"$site)){
          
$servername $server;
          break;
        }
      }
      if(
$servername){
        
header("Location: $servername$site\n\n");
      }else{
        echo 
"No match domains.";
      }
    }
?>
<html><head><title>WebWhois</title>
<meta name="ROBOTS" content="NOINDEX,NOFOLLOW">
<meta name="robots" content="noindex,nofollow">
<meta name="robots" content="noarchive">
<style type="text/css">
<!--
body{font-size:10pt;font-family:Tahoma,Verdana,Arial;color:#ffffff;background-color:#051530;}
h2{color:#ffffff;font-family:Tahoma,Verdana,Arial,sans-serif;}
a:link,a:active,a:visited{color:#A7C4FF;text-decoration:none;}
a:hover{color:#7794CF;text-decoration:underline;}
hr{height: 1px;color: #354560;}
input{border:1px solid #652590;color:#A7C4FF;background-color:#152540;font-family:Verdana,Arial;font-size:9pt;}
span.type{color:#9EA6B2;font-family:"Courier New","Lucida Console",Courier,Terminal; }
-->
</style>
</head>
<body link="#A7C4FF" vlink="#A7C4FF" alink="#A7C4FF">
<hr><h2>WebWhois</h2>
<blockquote>
<form action="<?php echo $_SERVER[PHP_SELF];?>" method="post" target="_blank">
    <input type="text" size="30" name="site" value="">
    <input type="submit" value=" Start ">
</form>
<p align=right><a href="http://php.s3.to">Let's PHP!</a>
<hr>
Please enter a site name.  .com.net.org.jp.to.cc.tv...
</blockquote>
</body>
</html>