Added a simple form
This commit is contained in:
parent
bacce15c14
commit
1397c01e2b
1 changed files with 11 additions and 1 deletions
12
example.php
12
example.php
|
@ -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>";
|
||||
|
|
Loading…
Reference in a new issue