rendered paste body <?php $string = "$domain$tld"; $site = file_get_contents("http://isfree.schlundtech.de/cgi-bin/isfree.cgi?domain=$string&lang=EN"); if (!$check) { $results = ""; } else { if ($domain == "") { $results = "<b>Please fill in all fields</b>"; } else { $findme = "The domain $string is still available"; $pos = strpos($site, $findme); if ($pos !== false) { $results = "<b>$string is Available</b>"; } else { $results = "<b>$string is Not Available</b>"; } } } ?> <form action="<?php echo $PHP_SELF; ?>" method="post"> <span class="style24">Check Domain Availability </span>www. <input type="text" name="domain" /> <select name="tld"> <option name=".com" value=".com">.com</option> <option name=".net" value=".net">.net</option> <option name=".org" value=".org">.org</option> </select> <input type="submit" name="check" value="Check" /> <?php echo "$results"; ?> </form>