No se si va a funcionar pero trata de cambiar esta funcion de esta forma...
Código PHP:
function check_result(){
if(!isset($_SESSION['captcha']) || strtoupper($_SESSION['captcha']) != strtoupper($_REQUEST['capt']) || $_SESSION['captcha']=='BADCODE')
{
$_SESSION['captcha']='BADCODE';
return false;
}
else
{
return true;
}
}