[insert_php]
‘ . $fulldomainname;
if ($datajson[$fulldomainname][“status”] == “available”) {
echo ‘ Available’;
// $flag=1;
} else {
echo ‘ Not Available
‘;
}
}
// Domain Suggestions
$stack = array(“”);
$i = 0;
foreach ($datajson[$domainname] as $sugdomain => $sugtld) {
// echo $sugdomain.’.’.$tld;
$stack[$i] = $sugdomain;
$i++;
}
echo ‘
Sugg names :
‘;
$i = 0;
foreach ($stack as $value) {
foreach ($datajson[$domainname][$value] as $sugdomain => $sugtld) {
if ($datajson[$domainname][$value][$sugdomain] == “available”) {
echo $value . ‘.’ . $sugdomain;
echo ‘
‘;
$i++;
if ($i == 7) {
break;
}
}
}
if ($i == 7) {
break;
}
}
// domain suggestions end
}
elseif (isset($_POST[‘check’])){
if(!isset($_POST[‘tld’])){
echo ‘
Tick Your Domain’;
}
if( !isset($_POST[‘domain’]) || $_POST[‘domain’] ==”” ){
echo ‘
Type Domain Name’;
}else{
$domainname=$_POST[‘domain’];
}
}
?>
[/insert_php]