if ( $cAction == "check" ) {
if ( $bError == 1 ) {
// There was some kind of error, print that out
echo "We're sorry, there was an error checking the ";
echo "availability of the domain name $cSld.$cTld. ";
echo "The error was \"$cErrorMsg\"
Would you like to try again?";
} else if ( $bAvailable == 0 ) {
// The domain name is already registered
echo " We're sorry, the domain name $cSld.$cTld";
echo " has already been registered.
Look-up a different name?";
} else if ( $bAvailable == 1 ) {
// The domain name is available, display a link to go register it
echo " Congratulations! The domain name $cSld.$cTld";
echo " is available! Register it now by clicking ";
echo "here!
Or would you like to look-up a different name?";
} else {
// If we get here the page didn't work right
echo "Darn those php guys they made a bug!";
}
}
?>
|