1. Go to this page and download the library: Download wendrowycz/zf1-recaptcha-2 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// create your element and pass through your site key and secret key
$this->addElement('Recaptcha', 'g-recaptcha-response', [
'siteKey' => Zend_Registry::get('application')->recaptcha->sitekey,
'secretKey' => Zend_Registry::get('application')->recaptcha->secretkey,
]);
if($form->isValid($_POST)) {
$values = $form->getValues();
unset($values['g-recaptcha-response']);
// Your business logic must be here
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.