# contact-forms/1.9.2/PFBC/Element/Captcha.php

Contact Forms by Cimatti, version 1.9.2. 16 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Element/Captcha.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.9.2/raw/PFBC/Element/Captcha.php
- Modified: 2023-03-14T12:04:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Element/Captcha.php#L10-L20`.

```php
<?php
class Element_Captcha extends Element {
	protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_";
	protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi";

	public function __construct($label = "", array $properties = null) {
		parent::__construct($label, "recaptcha_response_field", $properties);
	}	

	public function render() {
		$this->validation[] = new Validation_Captcha($this->privateKey);
		require_once(dirname(__FILE__) . "/../Resources/recaptchalib.php");
		echo recaptcha_get_html($this->publicKey);
	}
}

```
