Click to See Complete Forum and Search --> : why is my checkbox dead?


digiti0
09-13-2003, 06:29 PM
Attached is source for an asp program, plus a copy of the database in case you want to try to run it. the checkbox joreqlicense

<% if strJOReqLicense = "Y" then %>
<input type="checkbox" name="joreqlicense" checked>
<% else %>
<input type="checkbox" name="joreqlicense">
<% end if %>
License Required</div></td></tr>

dies whenever I comment out the following button, which is at the bottom of the code.

<input type="button" name="errorbutton" value="Show the error" onClick="display()">

Unless the button's in there, nothing happens when the checkbox is clicked. Then when I put the button back in, the checkbox works fine. Anybody have any idea why? I can't leave the button in.

Thanks a lot!

zachzach
09-15-2003, 03:14 PM
maybe because your saying be checked if this=yes, and so your making this=no, and it doesn't like that

or maybe im a toatal lunitic
zach

digiti0
09-16-2003, 10:33 AM
thanks for trying zach, i'm probably missing a comma somewhere...but where!!! lol