'6Le4I10UAAAAAL2_8MGw7K63F2Supf_gnUxiENyr', 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { echo "

You are a bot! Go away!

"; } else if ($captcha_success->success==true) { print_r( $_POST); }