I was trying to get an answer from the recaptcha instead of getting just successful/failed message but failed to get a way .
To get the hold of the scenario lets assume one.
I got an recaptcha by firing this line in my php page :
echo recaptcha_get_html($publickey, $error);
Then i got a challenge.

Now when user submits it , this code is get executed.
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
This function definitions is :
function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
Now , what is $extra_params ? Where i can get to know about that. Nothing is stated in recapthca api of php. Is there any option to get the text of the recaptcha by passing something in “$extra_params”?
And when it is submitted, it sends me this response :
Array ( [0] => HTTP/1.1 200 OK Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Date: Fri, 20 Jul 2012 18:49:51 GMT Content-Type: text/plain X-Recaptcha-Request-Duration: 8 X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Server: GSE Connection: close [1] => true success ) You got it!
Now , i want to get the answer of the recaptcha in the response. In this specific challange this will be “reign eveloost”
Any help is highly appreciated.
After a lots of googling and research effort , i found out that the way recaptcha works , it is not possible to get answer . I can only mange to know a success status .That’s all.