title: Recaptcha with CodeIgniter
body: <p>I am trying to implement recaptcha my form in CodeIgniter (without using the recaptcha library). This works fine, however as in my form, I am displaying each fields errors individually, I want to display recaptcha error next to its place in the form, can someone help me how can i do it?</p>
  
  <p>The code from my controller:        </p>
  
  <pre><code>    $this-&gt;form_validation-&gt;set_rules('name', 'Name', 'trim|required|min_length[3]|max_length[25]');
      $this-&gt;form_validation-&gt;set_rules('email', 'Email address', 'trim|required|valid_email');   
  
      //With above set_rules i'm able to display each fields errors next to it, 
      //How can i display following recaptcha error next to it.
          if (!$resp-&gt;is_valid)
          {
              //reCAPTCHA was entered incorrectly
              die (
              "The reCAPTCHA wasn entered incorrectly." .
              "(reCAPTCHA said: " . $resp-&gt;error . ")
              ");
          }
          else
          {
              //Successful verification
              die('Success!');
          }
  </code></pre>
  
  <p>Thanks for any help.</p>