All pastes #386891 Raw Edit

poppabear

public php v1 · immutable
·published 2007-03-08 23:19 UTC
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" />&nbsp;	  <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>&nbsp;&nbsp;&nbsp;	  <input type="submit" name="check" value="Check" />&nbsp;&nbsp;&nbsp;	  <?php echo "$results"; ?>  	</form>