hostname validator
$hostname = "www.rntsoft.com";
if (!isset($hostname)) {
die("Hostname value wasn't properly submitted. Retry.");
}
if(empty($hostname)){
die("Hostname field was left blank ! Retry.");
}
echo "". $hostname ." ";
if(checkdnsrr($hostname)) {
echo "has a valid MX record !
";
}else{
die("does not exist");
}
?>