All pastes #469332 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-03 17:53 UTC
rendered paste body
<?php
$dname = $_REQUEST['domain'];
$tname = $_REQUEST['tld'];

 
 
if (isset($dname) && isset($tname)) { 
        $domain = $dname.'.'.$tname;
        $site = file_get_contents("http://isfree.schlundtech.de/cgi-bin/isfree.cgi?domain=" .$domain. "&lang=EN");
        if (strpos($site, 'is still available') !== false) {    
                $results = "<b>$domain is Available</b>";
        } else {
                $results = "<b>$domain is Not Available</b>";
        }
		echo $results;
}
?>
<form action="php.php" method="post" id="check">
  <input type="text" name="domain" size="18"> 
  <select name="tld" size="1">
     <option value="com" selected>com</option>
     <option value="net">net</option>
     <option value="org">org</option>
     <option value="org">biz</option>
  </select>
</form>