Link to home
Start Free TrialLog in
Avatar of n4narik
n4narik

asked on

Changing boolean values in a database using checkboxes.

I have a SQL2000 DB with a table about 'builders'. It has three fields: ID, Name, IsActive. IsActive is a boolean field. I  would like to display the contents of the table with check-boxes for IsActive column in a web-page. When I check or uncheck the check-boxes, the values in the DB should change after I click a submit button.

This a piece of code I used to simply display the contents:

<div align=center>
<table border=1 cellspacing=0 cellpadding=2><tr>
<td align=center><b>Builder ID</b></td>
<td align=center><b>Name</b></td>
<td align=center><b>Active?</b></td></tr>
<%
do until rs.EOF
%>
<tr>
<td><%=rs(0)%></td>
<td><%=rs(1)%></td>
<td><%=rs(4)%></td>
</tr>
<%
rs.movenext
loop
%>
</table></div>
SOLUTION
Avatar of kevp75
kevp75
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of n4narik
n4narik

ASKER

Thank you! It works! Can I give kevp75 some 100 points though?!
:) thanks....to do that you wil have to do a split
thanks n4narik nice to help you!