Location: PHPKode > scripts > NBSCaptcha > NBSCaptcha/checkCaptcha.php
<?php
	//Start session only if it is not started.
	if (!isset ($_COOKIE[ini_get('session.name')])) {
		session_start();
	}

	
	if(isset($_POST['value'])){
		require_once './securimage_src/securimage.php';
		$securimage = new Securimage();

		if ($securimage->check($_POST['value']) == false) {
			echo "<span style='color: red'>INCORRECT</span>";
		} else {
			echo "<span style='color: green'>CORRECT</span>";
		}
	} else {
		echo "<span style='color: red'>INCORRECT</span>";
	}
	

?>
Return current item: NBSCaptcha