<?php
if(isset($_POST['g-recaptcha-response'])){
// Send data and get response
$cap = $_POST['g-recaptcha-response'];
$ch = curl_init('
https://www.google.com/recaptcha/api/siteverify?se...'.$cap);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
header ('location : /verify');
exit;
print_r($result);
}
var_dump($result);
?>