reCaptcha - A captcha system that uses successful decodings to helps digitise books for online use, avoid spam, spam-free form

reCaptcha

A CAPTCHA or Captcha is a type of challenge-response test used in computing to ensure that the response is not generated by a computer. ReCaptcha is a popular captcha system that uses successful decodings to helps digitise books for online use. The reCaptcha technology works together with the reCaptcha servers, so you cannot use it in a network which is not connected to the internet.

This element is to be used together with the reCaptcha validation - you'll need to use both, as the element only displays the reCaptcha interface.

To use this element, you'll need to get your own API keys first! The public API key is used for the element (this is used in the HTML code), while the private API key is used for the validation (used only between your server and the reCaptcha server).

You need to include the reCaptcha PHP library before using this element (recaptcha_get_html function must be defined).


<?php 

$config 
= Array( 

  
'recaptcha' => Array(  

    
'type'           => 'reCaptcha'
    
'displayname'    => 'Please take the reCaptcha challenge!'

    
'key'            => '...',  // Google API key, required 

    
'help'           => 'validation failed for this element'
    
'rowlayout'      => '...%element% %prefix% %postfix% etc...'
    
'prefix'         => 'string to display before element'
    
'postfix'        => 'string to display after element'
    
'display'        => 0
); 

?>


form validation for developers!

clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain forms
learn more
Bookmark and Share