<form method="post" action="">
<?php
	include('recaptcha.class.php');
	
	$captcha	=	new Recaptcha;
	$captcha->publicKey		=	"your public API key";
	$captcha->privateKey	=	"your private API key";

	if(isset($_POST) AND !empty($_POST)){
		$captcha->checkCaptcha();
		$debug	=	$captcha->getError();	
		if(!$debug){
			echo 'All right';
		}
		else{
			echo $debug;
		}
	}
	
	echo $captcha->getCaptcha();
?>
<input type="submit" value="Check captcha" />
</form>
