phpWhois.org/example.php

24 lines
423 B
PHP
Raw Normal View History

<?php
// $Id$
include("main.whois");
2002-10-17 10:44:40 +00:00
$domain = "example.com";
if(isset($_REQUEST['domain'])) {
$domain = $_REQUEST['domain'];
}
$whois = new Whois($domain);
$result = $whois->Lookup();
2002-10-17 10:44:40 +00:00
echo "<form method=\"post\" action=\"example.php\">";
echo "<input name=\"domain\" value=\"".$domain."\"/>";
2002-10-17 10:44:40 +00:00
echo "<input type=\"submit\"/>";
echo "</form>";
echo "<pre>";
print_r($result);
echo "</pre>";
?>