
John Dawson - 2011-06-02 17:26:57
Dear Pastor Bones,
Your code, as designed, works on FF, but not on IE9.
You are using "sec_code" for both the "<input>" text-box and the CAPTCHA image. These items should not have the same identifiers.
After some debugging, I was able to fix the problem by changing the following code:
Enter the characters below(Case Sensitive Text):<br /><input class="text" type='text' name='sec_code' /><br />
<img src="?captcha" name="sec_code" id="sec_code" title="[Captcha Code - Case sensitive]" /><br />
<a href="javascript:;" onclick="document.getElementById('sec_code').src = '?captcha='+Math.random();">Reload Captcha</a>
to:
Enter the characters below(Case Sensitive Text):<br /><input class="text" type='text' name='sec_code' id='sec_code' /><br />
<img src="?captcha" name="sec_code_img" id="sec_code_img" title="[Captcha Code - Case sensitive]" /><br />
<a href="javascript:;" onclick="document.getElementById('sec_code_img').src = '?captcha='+Math.random();">Reload Captcha</a>
Note, also, that I added "id='sec_code'" to the definition of the "<input>" text-box.
I hope this will help other folks. In all other respects, your design works very well. Thanks.