Location: PHPKode > scripts > NBSCaptcha > NBSCaptcha/securimage.php
<?php
	session_start();
	
    require_once 'securimage_src/securimage.php';

    $image = new Securimage();
	$image->captcha_type = Securimage::SI_CAPTCHA_MATHEMATIC;
	$image->num_lines = 5;
	$image->image_height    = 50;                                // width in pixels of the image
	$image->image_width     = ($image->image_height * M_E) + 135;          // a good formula for image size	
	
    $image->show();

    // Code Validation

    $image = new Securimage();
    if ($image->check($_POST['code']) == true) {
      echo "Correct!";
    } else {
      echo "Sorry, wrong code.";
    }	

?>
Return current item: NBSCaptcha