title: Recaptcha ajax not wotking
body: <p><strong>jQuery:</strong></p>
  
  <pre><code>    alert(grecaptcha.getResponse());
      var captchadata = {
          captchavalue: grecaptcha.getResponse()
      }
     $.ajax({
         type:"POST",
         url:"&lt;?php echo base_url()?&gt;index.php/User/captcha",
         data: captchadata,
         success: function(response){
          if(response == 1){
              alert('success');
          }
         }
     })
  }
  </code></pre>
  
  <p><strong>PHP:</strong></p>
  
  <pre><code>    $value = $this-&gt;input-&gt;post('captchavalue');
      echo $value;
      if(isset($value)){
          $captcha = $this-&gt;input-&gt;post('captchadata');
          echo 'if executed';
      }
      $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LcA1hwUAAAAADGmQKlRcCeugOUkbk-8NSGVhff0&amp;response=".$captcha."&amp;remoteip=".$_SERVER['REMOTE_ADDR']), true);
      if($response['success'] == true){
          echo 1;
      }
      else{
          echo 0;
      }
  </code></pre>
  
  <p>Front side it alerting <code>captcha</code> value. My PHP file is not responding even it not displaying <code>$value</code>. How can I resolve this error and why it happening? Please help me.</p>