Answer the question
In order to leave comments, you need to log in
How to pass value from PHP to nginx? Problem with Recaptcha?
<?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);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question