Inser recaptcha php code into an existing complex php file


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.



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);


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>';



Kemahiran: PHP

Lihat lagi: recaptcha code existing html form, php code update existing xls file, php code generate design file, php code store data file, php code megavideo avi file, read mp3 file php code, read complex xml file php, php code create excel file, upload file php code page, php code upload csv file, php open existing pdf file, php code read log file, flash php edit existing xml file, php code upload video file, php code download csv file

Tentang Majikan:
( 1 ulasan ) BUCURESTI, Romania

ID Projek: #17247610

Dianugerahkan kepada:


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

€30 EUR dalam 0 hari
(376 Ulasan)

22 pekerja bebas membida secara purata €27 untuk pekerjaan ini


Hello there, As per my understanding, you need to Insert Recaptcha PHP code into an existing complex PHP file. we have 6+year experience in website design and developments in PHP, WordPress. we are interested in your Lagi

€30 EUR dalam sehari
(141 Ulasan)

Hi there!! Please share the access to your site so I can add ReCaptcha as you want. I have good experience of :Python (Django, [login to view URL]) / JS / HTML / CSS/C++ ✔ Angular-js / Backbone-js/ Twitter Bootstrap ✔ M Lagi

€30 EUR dalam sehari
(118 Ulasan)

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

€34 EUR dalam 0 hari
(133 Ulasan)

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 dalam 0 hari
(126 Ulasan)

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 Lagi

€34 EUR dalam sehari
(91 Ulasan)

Hello, Thank you for your job posting. I have carefully go through your requirements and I can insert the Recaptcha code to match your requirements. My Key Areas are: - Web design - Web development - Custom Lagi

€23 EUR dalam sehari
(85 Ulasan)

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

€30 EUR dalam sehari
(24 Ulasan)

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 Lagi

€70 EUR dalam sehari
(38 Ulasan)

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 Lagi

€16 EUR dalam sehari
(39 Ulasan)

Hi greetings, I have already done Google recapcha work for other site. Thank you for going through my proposal for your Job titled I have gone through your job posting. I am an Expert PHP Developer with extensiv Lagi

€9 EUR dalam sehari
(59 Ulasan)

Dear Hiring Manager, I read your job description and I am confident that I can exceed your expectations. I am a professional programmer on Insert recaptcha php code into an existing complex PHP file.I am able to d Lagi

€23 EUR dalam sehari
(24 Ulasan)

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 Lagi

€26 EUR dalam sehari
(27 Ulasan)

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 dalam sehari
(43 Ulasan)

Dear sir, Greeting of the day! I have gone through your project details which is Inser recaptcha php code into an existing complex php file and we can start immediately. We have huge experience of Website developmen Lagi

€34 EUR dalam sehari
(5 Ulasan)

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 Lagi

€15 EUR dalam sehari
(10 Ulasan)

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 Lagi

€23 EUR dalam sehari
(1 Ulasan)

Hi, Hope you are doing well, As I have seen your job post I am ready to Insert recaptcha PHP code into an existing complex PHP file to your website. I am having extensive experience in PHP, HTML5, CSS, JavaS Lagi

€30 EUR dalam sehari
(5 Ulasan)

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 Lagi

€23 EUR dalam sehari
(1 Ulasan)

Hi Alexandru Greetings and hope you are doing well. I have landed on your requirement & I can meet up your exact requirement. We are web and mobile application development agency. We have great team here in C Lagi

€14 EUR dalam sehari
(0 Ulasan)

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 dalam sehari
(0 Ulasan)