Skip to content

Instantly share code, notes, and snippets.

@Octagon-simon
Created October 16, 2021 15:15
Show Gist options
  • Select an option

  • Save Octagon-simon/a59563c2e43e608510c94a452a931706 to your computer and use it in GitHub Desktop.

Select an option

Save Octagon-simon/a59563c2e43e608510c94a452a931706 to your computer and use it in GitHub Desktop.
Set up your post block
<?php
//Captcha verification script
require_once 'core/captcha_verify.php';
//Captcha custom JS
include_once 'assets/captcha_script.php';
//Captcha custom CSS
include_once 'assets/captcha_style.php';
if(isset($_POST)&& isset($_POST['submit'])){
$myCaptcha = json_decode(verifyCaptcha($_POST['key']), true);
print_r($myCaptcha);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment