Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
session_start();
$_POST = json_decode(file_get_contents('php://input'), true);
$_SESSION['recaptcha_token'] = $_POST['token'];
} else {
http_response_code(404);
header('Location: /404.html');
exit;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.