Ajax Contact Form with Captcha reCAPTCHA v2/2.0 using PHP with jQuery

Ajax Contact Form with Captcha reCAPTCHA v2/2.0 using PHP with jQuery

In this Post We Will Explain About is Ajax Contact Form with Captcha reCAPTCHA v2/2.0 using PHP with jQuery With Example and Demo.Welcome on pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to BOOTSTRAP RECAPTCHA FORM TUTORIAL Example

In this post we will show you Best way to implement Setting up reCAPTCHA 2.0 with AJAX Demo/Tutorial, hear for Ajax based reCAPTCHA v2 implementation using PHP with jQuery with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Why use reCAPTCHA?

->Google ReCAPTCHA is a Best or simple way to verify all the users are check real or not.

->Many other bots generally fake will look hard for your load side with dummy data contact Your forms that don’t any use google reCAPTCHA or simple an equivalent as well as send more any fake users thousands or more of send messages a second things through these your inquiry or contact forms.

->It can have very some negative some more effects for your websiter including your personl domain being data marked as message spam, being blocked mail from your gmail or any email server, and some many more things.

->With google reCAPTCHA, We add HTML PHP an extra layer of main best security by only users or humans allowing verified all the humans to HTML php server side HTML submit your form?

Send mail susscessfully with Google reCAPTCHA 2.0 with AJAX call

Crate api key

https://www.google.com/recaptcha/intro/index.html

url : https://www.google.com/recaptcha/admin

Paste this source code before the closing HTML head tag on your HTML template: Like this js libs


Paste this source code at the end of the main file html form tags where you want the google reCAPTCHA widget to appear: Ajax Contact Form with Captcha reCAPTCHA v2/2.0 using PHP with jQuery

index.html

simple source code to g-recaptcha add.



  
  




We Love To Hear From You

Please contact us pakainfo.com



NOTE: make almost sure to check replace Google Live YOUR_KEY as well as your set data-sitekey you simple website get from google reCAPTCHA.

Jquery source code

simple below jquery and javascript source code


ajaxsubmit.php

here server side source code available.



CONTACT US


CONTACT US

Company Name ".$comapny_name ."
service Name ".$sname."
First Name ".$fname."
Last Name ".$lname."
Email Address ".$email."
Phone ".$phone."
Address ".$address."
City ".$city."
Country ".$country."
zip code ".$zipcode."
Message ".$msg."
"; $email = "[email protected]"; //set your email address here //$email = "[email protected]"; //set your email address here $subject = "First mail for testing";// Put here Email Address subject $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: ' . "\r\n"; $headers .= 'Cc: [email protected]' . "\r\n"; $secret="YOUR_SECRET"; $response=$_POST["captcha"]; $verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secret}&response={$response}"); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { echo "This user was not verified by recaptcha."; } else if ($captcha_success->success==true) { //mail($email,$subject,$message,$headers); if(mail($email,$subject,$message,$headers)) { echo "Form Submitted Succesfully"; } } ?>

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

Example

I hope you have Got What is BotDetect PHP jQuery AJAX Contact Form CAPTCHA Code Example And how it works.I would Like to have FeedBack From My Blog(pakainfo.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(pakainfo.com) Are Most Always Welcome.

Leave a Comment