2005-07-16 15:32:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
include('whois.main.php');
|
|
|
|
|
|
|
|
$domain = 'example.com';
|
|
|
|
if(isset($_REQUEST['domain'])) {
|
|
|
|
$domain = $_REQUEST['domain'];
|
|
|
|
}
|
2005-07-22 22:28:20 +00:00
|
|
|
$whois = new Whois();
|
|
|
|
$result = $whois->Lookup($domain);
|
2005-07-16 15:32:07 +00:00
|
|
|
|
|
|
|
echo "<form method=\"post\" action=\"example.php\">";
|
|
|
|
echo "<input name=\"domain\" value=\"".$domain."\"/>";
|
|
|
|
echo "<input type=\"submit\"/>";
|
|
|
|
echo "</form>";
|
|
|
|
|
|
|
|
echo "<pre>";
|
|
|
|
print_r($result);
|
|
|
|
echo "</pre>";
|
|
|
|
|
|
|
|
?>
|