Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $captcha = $_POST['g-recaptcha-response'];
- $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=IDEJONASECRETKULCS&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
- $data = json_decode($response);
- if(isset($data->success) and $data->success == 1){
- //SIKER
- }else{
- //A captcha nem lett kitöltve
- }
Advertisement
Add Comment
Please, Sign In to add comment