"6Lc1oK0bAAAAAOvRlCr2B4z-mj_T89pcXbiiDpT_",
'response' => $_POST['token'],
// 'remoteip' => $_SERVER['REMOTE_ADDR']
];
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencodedrn",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$res = json_decode($response, true);
if($res['success'] == true) {
// Perform you logic here for ex:- save you data to database
echo '
Success! Your inquiry successfully submitted.
';
} else {
echo '
Error! You are not a human.
';
}
}
?>