if ($s5_domain12 == "yes") { if ($d_edu != '' || $d_all != '') { showDomainResult($domainbase . ".edu", 'whois.crsnic.net', 'No match for'); } } if ($s5_domain13 == "yes") { if ($d_mobi != '' || $d_all != '') { showDomainResult($domainbase . ".mobi", 'whois.dotmobiregistry.net', 'NOT FOUND'); } } if ($s5_domain14 == "yes") { if ($d_nl != '' || $d_all != '') { showDomainResult($domainbase . ".nl", 'whois.domain-registry.nl', 'free'); } } if ($s5_domain15 == "yes") { if ($d_ca != '' || $d_all != '') { showDomainResult($domainbase . ".ca", 'whois.cira.ca', 'AVAIL'); } } ?> </div> <?php } } ?> </div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post" name="domain"> Domain name: <table> <tr><td><input name="domainname" type="text" /></td></tr> <tr><td><input type="checkbox" name="com" checked/>.com</td></tr> <tr><td><input type="submit" name="submitBtn" value="Check domain"/></td></tr> </table> </form> <?php // The form was submitted if (isset($_POST['submitBtn'])) { $domainbase = isset($_POST['domainname']) ? $_POST['domainname'] : ''; $d_com = isset($_POST['com']) ? 'com' : ''; // Check domains only if the base name is big enough if (strlen($domainbase) > 2) { echo '<table>'; if ($d_com != '') { showDomainResult($domainbase . ".com", 'whois.crsnic.net', 'No match for'); } echo '</table>'; } } ?> </body>