Click here to Skip to main content
15,889,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i have a contactus page which i used acode for protection of Spam in it.
Now , i generate the image with its text and i want to check for the user entered data is identical with the text on the image , but i don't know how to get the text on the image , can any one help me , please???


The Html Image:

HTML
<img id="CaptchaImage"  alt="Web Form Code" style="margin-left:20px; border:1px solid #999999" src="http://www.SnapHost.com/captcha/WebForm.aspx?id=FTLT7E9R5EUC&ImgType=2" /></a>
<br />
<a href="#"  önclick="return ReloadCaptchaImage('CaptchaImage');"><span style="font-size:12px;">reload image</span></a>


The Code Of Reload Image:

JavaScript
<script type="text/javascript">

    function ReloadCaptchaImage(captchaImageId) {
        var obj = document.getElementById(captchaImageId);
        var src = obj.src;      
        var date = new Date();
        var pos = src.indexOf('&rad=');
        if (pos >= 0) { src = src.substr(0, pos); }
        obj.src = src + '&rad=' + date.getTime();
        return false;
      
    }
</script>


Thanks
Posted

check this article for exact answer

CAPTCHA Image[^]
 
Share this answer
 
Why not just use ReCaptcha[^] - its free, easy to use, and it helps to digitize books.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900