Google Recaptcha Api [ Codeıgniter ]
-
http://code.google.com/intl/tr-TR/apis/recaptcha/docs/php.html The only difference all functions changes to object but $resp object changed to array. old usage : $resp->is_valid | new usage : $resp['is_valid'] only include and use. @example <?php class ControllerName extends CI_Controller{ function index(){ $this->load->library('recaptcha'); $data['captcha'] = $this->recaptcha->recaptcha_get_html(); //print $captcha variable in your view file in anywhere. //verifing if($_POST){ //if test your form, you may add $debug value. ( but before add $extra_param variable ) $resp = $this->recaptcha->recaptcha_check_answer($this->input->server('REMOTE_ADDR'), $this->input->post('recaptcha_challenge_field'), $this->input->post('recaptcha_response_field'), array(), true ); if($resp['is_valid']){ echo 'Error:'.$resp['error']; }else{ //your code here to handle a successfull verification. } } } }Buradan Buyrun : http://goo.gl/MNQ3z
-
usta başlıktan anladığım captcha ları otomatik mi yapıyo doğru muyum?
-
joe_black bunu yazdı:
-----------------------------usta başlıktan anladığım captcha ları otomatik mi yapıyo doğru muyum?
-----------------------------Google ReCaptcha Apisi : http://code.google.com/intl/tr-TR/apis/recaptcha/intro.html
CodeIgniter için uyarlanmış hali.
-
eyw hocam eline sağlık. işe yarar zamanı gelince benim için.
Toplam Hit: 1152 Toplam Mesaj: 4
