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

jueves, 2 de julio de 2015

reCaptcha for Formmail

I can't seem to close the code. The form posts properly but the snippet on my processing.php shows the code at top of processing page..like HTML when a character is missing. Here is the code visible after the form processes. use LWP::UserAgent; Now, validate the CAPTCHA response and generate an error if the response doesn't match the challenge. ############################################################################## # Check the CAPTCHA response via the reCAPTCHA service. sub check_captcha { my $ua = LWP::UserAgent->new(); my $result=$ua->post( 'http://bit.ly/1iMNUWf', { privatekey => '6LcpqgcTAAAAAOnGM-ZvcNTOGG_0mc_ntxEZo9WA', remoteip => $ENV{'REMOTE_ADDR'}, challenge => $Form{'recaptcha_challenge_field'}, response => $Form{'recaptcha_response_field'} }); if ( $result->is_success && $result->content =~ /^true/) { return; } else { &error('captcha_failed'); } } -- 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/P65DvS.

No hay comentarios:

EnAcCiOn

Contador Web | EnAcCiOn

EnAcCiOn

EnAcCiOn

EnAcCiOn

Blog Archive | EnAcCiOn