Page 1 of 1

cookie issue on avalaibility and unavailability

Posted: Fri Nov 04, 2011 2:02 am
by amitroy
if ($whoisdata[$domain.'.in']['status'] != "available") {
# Result was OK!0
$val = explode("=",$whoisdata[2]);
@$wwhois = $val[1];
echo "<font style=\"background-color: #FF5F00\";> NOT available&nbsp;</font><input style=\"display: none; width: 0px; height:0px; margin: 0px; padding: 0px; font-size: 0px; line-height: 0px; float:left;\" type=\"text\" name=\"dava\" id=\"dava\" required=\"required\" value=\"" . "NO" ."\" hidden/>"; // $wwhois;
setcookie("dom", "", time()-1200);
setcookie("stat", "Not available", time()+3600);
echo "NA";

}
// if (@$results["status"]=="available") {
if ($whoisdata[$domain.'.in']['status'] == "available") {
# Result was OK!
$val = explode("=",$whoisdata[2]);
@$wwhois = $val[1];
echo "<font style=\"background-color: #008000\";> available&nbsp;</font><input style=\"display: none; width: 0px; height:0px; margin: 0px; padding: 0px; font-size: 0px; line-height: 0px; float:left;\" type=\"text\" name=\"dava\" id=\"dava\" required=\"required\" value=\"YES\" hidden/>"; // $wwhois;
setcookie("dom", $domain, time()+3600);
setcookie("stat", "available", time()+3600);
echo "A";

}


We are parsing values to check the available & unavailable domains .

How can we clear the issue.... can anyone help me with this...