# Captcha
Standalone Captcha which does not require the class.

The captcha image does not require the class. By default it does not show a captcha. To enable the use of a captcha, some additional code is required:
// Setup new secure mail form.
$setup = new \security\forms\SecureMail();
// Try to detect a Robot on this form. If found, do you want to show a Captcha?
$robot = $setup->detectrobot();
if($robot == TRUE) {
// CAPTCHA CODE HERE.
echo "Prove to us you are not a robot.";
echo '';
echo '';
}
Then, on the mailform.php you need to read the $_SESSION['captcha_question'] , which was stored inside the image session.
Like so:
if($_SESSION['captcha_question'] === $_POST['captcha']) {
echo "Captcha was correct!";
}
And then decide what to do next...