Project / Support Center
Welcome, Guest. Please login or register. September 29, 2021, 03:18: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Google Related  |  Topic: google recaptcha - Not a Robot 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: google recaptcha - Not a Robot  (Read 2423 times)
admin
Administrator
******
Offline Offline

Posts: 228


« on: June 06, 2020, 01:44: PM »

 Just copy and add red & blue code

 Add this before end of head tag

<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
          <script type="text/javascript">
      var onloadCallback = function() {
        grecaptcha.render('html_element', {
          'sitekey' : 'YOUR SITE KEY'
        });
      };
    </script>

</head>

Next add this after form tag

  </form>
                     <div id="dmxReCaptcha2" class="g-recaptcha" data-sitekey="YOUR SITE KEY"></div>
                      <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
        async defer>
    </script>


Next add this after html tag

</html>
<script type="text/javascript">
   function my_button_click_handler() {

   var recaptcha = $("#g-recaptcha-response").val();
   if (recaptcha === "") {
      alert("Please check the recaptcha");
      return false;
   }
   return true;
};
</script>



Thats it
« Last Edit: July 15, 2021, 04:06: PM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Google Related  |  Topic: google recaptcha - Not a Robot « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!