Added a simple form

This commit is contained in:
rossigee 2002-10-17 10:44:40 +00:00
parent bacce15c14
commit 1397c01e2b

View file

@ -4,8 +4,18 @@
include("main.whois");
$whois = new Whois("example.com");
$domain = "example.com";
if(isset($_REQUEST['domain'])) {
$domain = $_REQUEST['domain'];
}
$whois = new Whois($domain);
$result = $whois->Lookup();
echo "<form method=\"post\" action=\"example.php\">";
echo "<input name=\"domain\"/>";
echo "<input type=\"submit\"/>";
echo "</form>";
echo "<pre>";
print_r($result);
echo "</pre>";