Please fill in all fields'; } else { $domain = $_REQUEST['domain'] . '.' . $_REQUEST['tld']; $site = file_get_contents("http://isfree.schlundtech.de/cgi-bin/isfree.cgi?domain=$domain&lang=EN"); if (strpos($site, 'is still available') !== false) { $results = "$domain is Available Click here to order"; } else { $results = "$domain is Not Available"; } } ?> // FORM