php - Recaptcha POST doesn't work with my secret key -
i have form sending email recaptcha, work when use test site-key , secret key found in recaptcha faq recaptcha faq but when insert mine doesn't work, i,ve tried recreate keys problem still remain... suggest? here's php code: <?php $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=my_secret_key&response='.$_post['g-recaptcha-response'].'&remoteip='.$_server['remote_addr']); $responsedecoded = json_decode($response); if ( $responsedecoded->success == false ) { echo 'busted!'; exit(); } else{ //here insert code sending email } ?> i think problem here. secret=my_secret_key replace my_secret_key actual secret_key in file_get_contents() .