Skip to content

tsung/NoCAPTCHA-reCAPTCHA-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

NoCAPTCHA-reCAPTCHA-PHP

NoCAPTCHA reCAPTCHA display and verify PHP function.

Document: https://developers.google.com/recaptcha/

Example

  • function recaptcha_display()
    <?php include('nocaptcha-recaptcha.php'); ?>
    <form action="?" method="post">
    <?php echo recaptcha_display(); ?>
    <input type="submit">
    </form>
  • function recaptcha_vertify($response)
    <?php
    include('nocaptcha-recaptcha.php');
    $response = $_POST['g-recaptcha-response'];

    if (!recaptcha_vertify($response)) {
        echo "Failed";
        exit;
    }
    ?>

About

NoCAPTCHA reCAPTCHA display and verify PHP function.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages