PHP Classes

Design Error Found

Recommend this page to a friend!

      CAPTCHA Generator  >  All threads  >  Design Error Found  >  (Un) Subscribe thread alerts  
Subject:Design Error Found
Summary:Duplicate Usage of "sec_code" Causes IE9 Not to Work
Messages:2
Author:John Dawson
Date:2011-06-02 17:26:57
Update:2011-06-03 05:00:15
 

  1. Design Error Found   Reply   Report abuse  
Picture of John Dawson 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.

  2. Re: Design Error Found   Reply   Report abuse  
Picture of Pastor Bones Pastor Bones - 2011-06-03 05:00:15 - In reply to message 1 from John Dawson
This is not code found in my class...sorry