I have created my own captcha and I insert this code to my page <span class="capch"><img src="captcha.php" /></span>
.
Captcha.php generates a new string and stores it to $_SESSION. It's works perfectly, but when user inserts a wrong code I need to refresh this image. I do it like this: $('.capch').html('<img src="captcha.php" />');
Why it doesn't show a new code? It really should, shouldn't? Or I am missing something here?