title: How to verify google captcha
body: <p><strong>Client side code</strong></p>
  
  <pre><code>&lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
  &lt;script&gt;
     var verified = function() {
         document.getElementById("loginform").submit();
     };
  &lt;/script&gt;    
  
  &lt;form action="www.example.com/" method="POST" id="loginform" onsubmit=" return validation()"&gt;
     &lt;input  id="email" maxlength="80" name="email" size="20" type="text"  placeholder="Enter Your Email" style="margin-bottom: 30px;"/&gt;&lt;br&gt;
     &lt;div id="captchadiv"&gt;
          &lt;div class="g-recaptcha" data-sitekey="site key" data-callback="verified"&gt;&lt;/div&gt;
     &lt;/div&gt;
     &lt;button type="submit" value="Submit" id="reg_submit" style=" display:block;margin: 0 auto;"&gt;&lt;img src="/favicon.png" style="width: 20px;float: left;" /&gt;Sign in&lt;/button&gt;                  
   &lt;/form&gt;
  </code></pre>
  
  <p><strong>Server Side code</strong></p>
  
  <pre><code>reCAPTCHA=require('recaptcha2')
  
          recaptcha=new reCAPTCHA({
              siteKey:'site key',
              secretKey:'secretKey'
          })
  </code></pre>
  
  <p>I am working on <code>node js</code>.I am using google <code>recaptcha2</code> and when i see lots of example and all example verify <code>recaptcha</code> using form submit. They define in action but my action method use in other navigation so i can use <code>get, post</code> request. I don't have any idea for how to use <code>get, post</code> request for <code>recaptcha</code>.I want to verify <code>recaptcha</code> on server side using <code>get,post</code> request.</p>
  
  <p>I need help on back-end verification work.
  Thanks advance!</p>