Tweet, Share & Like [ EnAcCiOn ]

 

FeedBurner FeedCount Y Facebook | EnAcCiOn

Send Voicemail | EnAcCiOn

Contact me using vCita | EnAcCiOn

Contact me using vCita | EnAcCiOn

Meeting Scheduler Powered by vCita

lunes, 17 de febrero de 2014

Re: reCaptcha with Ajax from submission

maybe this help someone: function recaptcha_validate($recaptcha_challenge_field, $recaptcha_response_field) { session_start(); if (isset($_SESSION[$recaptcha_challenge_field])) return 0; #ok require_once($this->config->item('recaptcha_path').'/recaptchalib.php'); $privatekey = $this->config->item('recaptcha_privatekey'); $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $recaptcha_challenge_field, $recaptcha_response_field); if (!$resp->is_valid) { return 1; #error } else { $_SESSION[$recaptcha_challenge_field] = 1; return 0; #ok } } -- You received this message because you are subscribed to the Google Groups "reCAPTCHA" group. To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+unsubscribe@googlegroups.com. To post to this group, send email to recaptcha@googlegroups.com. Visit this group at http://bit.ly/1dkFnYd. For more options, visit http://bit.ly/1gYXIc9.

No hay comentarios:

EnAcCiOn

Contador Web | EnAcCiOn

EnAcCiOn

EnAcCiOn

EnAcCiOn

Blog Archive | EnAcCiOn