Validate Captcha
<p>I am using following code to access the captcha </p>

<pre><code>&lt;img src="captcha_code_file.php?rand=&lt;?php echo rand(); ?&gt;" id="captchaimg" &gt;&lt;br /&gt;
&lt;label for="message"&gt;Enter the code above here :&lt;/label&gt;
&lt;input id="6_letters_code" name="6_letters_code" type="text"&gt;
</code></pre>

<p>I am using jquery validation in the form, not able to validate the captcha with the right image, how can i validate it ?
I have the below code for could be able to get it properly</p>

<pre><code>if(empty($_SESSION['6_letters_code'] ) ||
  strcasecmp($_SESSION['6_letters_code'], $_POST['6_letters_code']) != 0)
    {
        //Note: the captcha code is compared case insensitively.
        //if you want case sensitive match, update the check above to
        // strcmp()
        $errors .= "\n The captcha code does not match!";
    }
</code></pre>

<p>Guide me Please ! Thankyou</p>
