<?php
if (isset($_POST['submit'])) {
$domain = $_POST['domain'];
$ext = $_POST['extension'];
$full_name = $domain . '.' . $ext;
include_once('dchk.php');
$free = new DCHK();
if($free->check_domain("example.com, , , 1")) // Prints the register link also<br />
} else {
?>
<form method="post">
Check for a domain name:
<input type="text" name="domain" />
<select name="extension">
<option value="com">.com</option>
<option value="org">.net</option>
<option value="net">.org</option>
<option value="biz">.biz</option>
</select>
<br />
<input type="submit" name ="submit" value="Check now!"/>
</form>
<?
}
?>
|