verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); if ($resp->isSuccess()): // If the response is a success, that's it! die('CPT000'); else: // Something wrong die('CPT002'); endif; endif; ?>