Ok. Thanks i will try that now! I will post back if that does not work.
EDIT- Can you make it so if already exists make it return-
QUOTE
This site already Exists!
And I am also trying to get the data out of a HTML form. How would I do that? This is my File-
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<title>Domain Search</title>
</head>
<body>
<?PHP
$hname = "$_REQUEST["domain_name"]";
$ip = gethostbyname($hname);
print $ip; // Returns the host name, because the site does not exist.
print "<br>";
$hname = "www.google.com";
$ip = gethostbyname($hname);
print $ip; // Returns the IP address because the site does exist.
PHP?>
<form action="doaminsearchnow.php" method="POST">
www.<input name="domain_name" type="text">
<br />
<br />
<input type="submit" value="Check Availablity">
</form>
Example-wowihadfuntoday.com
</body>
</html>
EDIT AGAIN- Now when A domain gets searched, I want it to say either
If the domain was not yet used-
QUOTE
www."domainsearched.com" is available!
Or if the domain was in use-
QUOTE
www."domainsearched.com" is NOT available.
Thanks!
Reply