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