Inser recaptcha php code into an existing complex php file

Completado Publicado hace 5 años Pagado a la entrega
Completado Pagado a la entrega

Hello,

i am trying to configure recaptcha v2 on my website. I found the code on the internet, i am providing it below. I have done the client side work myself, however on the server side there is a [login to view URL] file done by the developer of a newsletter sending application that needs to include this code i found on the internet so that recaptcha starts to work. I am lacking the skills to integrate it so that all the current code keeps perfect functionality.

It should't be complicated for a coder,

best regards.

Alexandru

<?php

function post_captcha($user_response) {

$fields_string = '';

$fields = array(

'secret' => '6Lfg9V8UAAAAAJQmqjZnXa0AcmC4ISXD3twREuYN',

'response' => $user_response

);

foreach($fields as $key=>$value)

$fields_string .= $key . '=' . $value . '&';

$fields_string = rtrim($fields_string, '&');

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, '

[login to view URL]');

curl_setopt($ch, CURLOPT_POST, count($fields));

curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, True);

$result = curl_exec($ch);

curl_close($ch);

return json_decode($result, true);

}

// Call the function post_captcha

$res = post_captcha($_POST['g-recaptcha-response']);

if (!$res['success']) {

// What happens when the CAPTCHA wasn't checked

echo '<p>Please go back and make sure you check the security

CAPTCHA box.</p><br>';

} else {

// If CAPTCHA is successfully completed...

// Paste mail function or whatever else you want to happen here!

echo '<br><p>CAPTCHA was completed successfully!</p><br>';

}

?>

PHP

Nº del proyecto: #17247610

Sobre el proyecto

22 propuestas Proyecto remoto Activo hace 5 años

Adjudicado a:

NickolaS

Hi there, I can install recaptcha for you right now. Just contact me by chat and we will discuss everything. THanks

€30 EUR en 0 días
(376 comentarios)
7.6

22 freelancers están ofertando un promedio de €27 por este trabajo

Sonicoders

I have four years experience as a web developer will integrate captcha code quickly, inbox me we can discuss more over chat.

€34 EUR en 0 días
(133 comentarios)
6.1
nixtech

Hello Sir I can make the recapthca workable for you and ready to start right away. Please check my profile for work and experience. Regards Ashwin

€26 EUR en 0 días
(126 comentarios)
6.1
nrtechweb

Hi greetings for the day! I am a senior php and WordPress developer and i have 7 years of experience in web development. I am a individual developer and i am not a company and doing freelancing individually. I will Más

€34 EUR en 1 día
(91 comentarios)
5.8
milliard

Hi Alexandru, I will help you with this. Please let me know when you want me to deliver? Thanks, Rajesh :-)

€30 EUR en 1 día
(24 comentarios)
6.0
schoudhary1553

Hello, I can help with you in your project Inser recaptcha php code into an existing complex php file. I have more than 5 years of experience in PHP. We have worked on several similar projects before! We have wor Más

€70 EUR en 1 día
(38 comentarios)
5.8
jhon312020

Working has a full time freelancer. Have a good profile in freelancer .com Available Timings 11.30 AM to 9.00 PM IST Monday to Friday. Technical Skills - 9+ years of experience in web development - 2+ years of Más

€16 EUR en 1 día
(39 comentarios)
5.2
sitwebsolution

Dear Sir/Madam, Hello Sir, we already worked on the same project. We are from S IT Solution, we're already skilled and experienced with your Desired skills. If you Consider us Más

€26 EUR en 1 día
(27 comentarios)
5.0
shanymathew

Dear Sir I have great experience in integration of google recaptcha Please reply I can do this work perfectly Am waiting for your reply

€30 EUR en 1 día
(43 comentarios)
4.6
tjcg

Hello Sir, We can successfully build websites in any frameworks of PHP, fulfilling all the requirements. We have read your job post and fully understood the requirements of the project. We believe in quality wo Más

€23 EUR en 1 día
(1 comentario)
2.6
Pdeveloper44

Hi, Hope, you’re doing well. absolute professional here, no time waster. I’m very Expert Web Developer/Software Developer, I have read the Project Description, I can help you. I have done this kind of Project Más

€15 EUR en 1 día
(10 comentarios)
2.6
theweeky15

Hello Boss, Am ready to start now and as per your requirement I am well deserving candidate for your project. I have read your JD and can I express my interest for the same because it’s a good fit for what I’ve been Más

€23 EUR en 1 día
(1 comentario)
0.5
GewoonDani

I'm a full time PHP/Javascript developer so this should be a fairly easy job, will be completed in less than a day.

€14 EUR en 1 día
(0 comentarios)
0.0