Please check the the captcha form.‘; exit; } $secretKey = “Put your secret key here”; $ip = $_SERVER[‘REMOTE_ADDR’]; $response=file_get_contents(“https://www.google.com/recaptcha/api/siteverify?secret=”.$secretKey.”&response=”.$captcha.”&remoteip=”.$ip); $responseKeys = json_decode($response,true); if(intval($responseKeys[“success”]) !== 1) { echo ‘

You are spammer ! Get the @$%K out

‘; } else { echo ‘

Thanks for posting

‘; } //Created By Adhersh M Nair //Reference: https://codeforgeek.com/2014/12/google-recaptcha-tutorial/
Shopping Cart