$is_hidden
$is_hidden :
reCAPTCHA input for your forms.
Based on http://recaptcha.googlecode.com/files/recaptcha-php-1.10.zip
Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net AUTHORS: Mike Crawford Ben Maurer
valueFromFormData( $name, $data) : array
Get the form data from the reCaptcha fields.
We need to get back two fields from the POST request 'recaptcha_challenge_field' and 'recaptcha_response_field'.
They are hardcoded, so we do not even bother checking something else.
$name | ||
$data |
Challenge and answer
idForLabel( $id)
Returns the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Returns None if no ID is available.
This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget's tags.
$id |
getHtml( $pubkey, $error = null, $use_ssl = false) : string
Gets the challenge HTML (javascript and non-javascript version). This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from.
$pubkey | ||
$error | ||
$use_ssl |
The HTML to be embedded in the user's form.