Skip to main content

Google Invisible Recaptcha Verification Contact Form Kaise Bnaye





Hello friends ajj me apko btaunga ki ki parkar ham apni website me kisi be form me google invisible recaptcha verification code integrate kar sakte hai easily.

Yanha ham php and mysql ka use be karege takki user dwara enter kiye gye data ,information ,name ,email, message ko ham mysql databse me store karwa sake ,iske liye aap database bana lijiye janha  ek  google name se table bna lijiye jisme app 4 fields id ,name,email,message create kar lijiye.





Step1-

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

Url open kijiye

step2- ab  aap sabse pehle label me apni website ka  url enter kijiye jis website me aap google  invisible recaptcha verification add karna chahte ho

step3-ab aap recaptcha invisible par click kijiye



step4-domains me apne website ka name enter kijiye jese label me kiya tha
step5-Accept the reCAPTCHA Terms of Service. Ke samne checkbox ko tik kar lijiye(select)

step6-ab register par click kijiye

step6-ab yanha apko site key and secret key milegi aap in key ko yanha se copy kar lijiye or niche diye gye code me paste kar dijiye.



Google Recaptcha Contact Form-index.php






<center>


<?php



$secret_key = '6Le_cF8UAAAAABn1WVwSo_hNWHWAfmyICYKgzG6s';



if (isset($_POST['g-recaptcha-response'])) {





$verifyCaptchaResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret_key.'&response='.$_POST['g-recaptcha-response']);

$responseCaptchaData = json_decode($verifyCaptchaResponse);

if($responseCaptchaData->success) {

echo 'Contact Form Submitted Succesfully';



$conn=mysqli_connect("localhost","id2863877_sonu","password","id2863877_sonu");
//enter your database detail Here
$name=$_POST['name'];
$email=$_POST['email'];
$message=$_POST['message'];
$sql = "INSERT INTO google(name, email, message)
VALUES ('$name', '$email', '$message')";

mysqli_query($conn, $sql);



} else {

echo 'Verification failed Try Again';

}

}

?>


<fieldset>
<form method="post" id="Form1" action="">
<h1>Google Invisible Recaptcha</h1>

<input type="text" class="form-control" name="name" placeholder="Enter full name" required/><br>
<input type="email" name="email" placeholder="Your email address" required><br>
<textarea name="message" placeholder="Type your message here...." required></textarea><br>




<button class="g-recaptcha btn btn-primary" data-sitekey="6Le_cF8UAAAAAA54y4FuqqxoVjTm8NMFrIpiOxYP" data-callback="submit">Submit</button>

</form>

</fieldset>

<script src='https://www.google.com/recaptcha/api.js'></script>

<script>

function submit() {

document.getElementById('Form1').submit();

}

</script>


</center>
Is parkar easily aap simple contact form bana sakte ho Google Invisible Recaptcha Ke Sath.me ummid karta hu ki apko ye post achi lagi hogi agar apko koi problem a rhe hai to aap comment me puch sakte ho
Thank You
Team Gajabwap Web In Hindi

Comments

  1. bro thanks is article ke Liye ye mere liye bhut helpful raha thanks again bro

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Download Vimeo Thumbnail With PHP

Vimeo Thumbnail Downloader Tool – Vimeo Video Ka Thumbnail Download Karein Aaj ke is tutorial mein hum Vimeo Thumbnail Downloader Tool ke baare mein jaanenge. Is tool ki help se hum Vimeo video URL se us video ki thumbnail image obtain kar sakte hain. Agar aap PHP, Web Development, HTML, CSS aur Online Tools banana seekh rahe hain, to ye ek useful PHP project example hai. Vimeo Thumbnail Downloader Kya Hai? Vimeo Thumbnail Downloader ek simple tool hai jisme user Vimeo video ka URL enter karta hai. Tool Vimeo video ID ko identify karta hai aur available thumbnail image ko display karta hai. Example Vimeo URL: https://vimeo.com/389063954 Is URL mein: 389063954 Vimeo video ID hai. Vimeo Thumbnail Downloader Kaise Work Karta Hai? Is PHP script mein mainly do functions use kiye gaye hain: 1. getVimeoId() Ye function Vimeo URL se video ID find karta hai. 2. getVimeoThumb() Ye function Vimeo video ID ke basis par thumbnail information retrieve karta hai aur available thumbnail...

How To Create Contact Form With Validation-Php & Html

How To Create Contact Form - Hello Friends Ajj Me Apko Btaunga   Ki Kis Prakar   Ham Apni Website Ke Liye Contact Form Bnana Sakta Hai.( By Using   Php Contact Form With Validation Script ) Contact Form Hmare Website Ke Liye Bhut He Jrruri Hota Hai.Contact Form Ke Help Se He User Apna Message Website Owner(Admin) Ko Bhej Sakte Hai. Ajj Me Apko Btane Wala Hu Ki Kis Parkar Ham Contact Form Banakar Apne Website Me Add Kar Sakte Hai Or Apni Website Ke Liye Contact Form Bana Sakte Hai Is Contact Form Me   Ham Php Mail Function() Ka Use Karege . Ab Jab Be Koi User Contact Form Me Apni Information ,Message Details Fill Karke Submit Karega To Uski Sare Information Website Admin Ke Email Id Par A Jaiyegi Jo Be Admin Dwara   Niche Diye Gye Code Me Setup Ki Hogi. Used Language- ·          HTML ·          Jquery ·          Php ...

How To Send Sms From Website Using Php-Textlocal SMS

Hello Friends Ajj Me Apko Btaunga Ki Kis Prakar Aap Apni Website Me Free Sms Send Ka Option Integrate Kar Sakte Ho. Bulk sms in India-Best company Iske Liye Apko Sabse Pehle   Https://Www.Textlocal.In/Signup Par Signup Karke Account Create Karna Hai.Ye Ek Achi bulk sms provider company hai ·          Account Create Hone Ke Bad Aap Apna Username And Password Enter Karke Apne Dashboard Me Login Ho Jaiye( textlocal login) ·          Yanha Apko Text Local Company Dwara 10 Meassge Free Testing Ke Liye Diye Jayege ·          Aap Sms Plan Buy Kar Sakte Ho Is Company Dwara Bhut He Kam Prize Me Sms Pakage,plan provide  Kiye Jate Hai Textlocal Price Plans –  index.php <?php if(isset($_POST['code']) &&  isset($_POST['mobile'])){ // Authorisation details. $username = "enter your textlocal account email id here"; $hash = "...