Technical Docs

Search Documentation

Function: recaptcha_get_html

Gets the challenge HTML (javascript and non-javascript version).

Located at vendor/recaptcha-php/recaptchalib.php (Line: 112)

Description

This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from.

Parameters summary

(string) $pubkey A public key for reCAPTCHA
(string) $error The error given by reCAPTCHA (optional, default is null)
(boolean) $use_ssl Should the request be made over ssl? (optional, default is false)

Return value summary

(string) - The HTML to be embedded in the user's form.

Examples

string recaptcha_get_html ( string $pubkey, string $error = null, boolean $use_ssl = false )