hi... I have 5 check box here.. For exampe: a, b, c, d, e When I tick for a and b,the detail then will send to database. If I want to update the check box, how to make the previous record, the check box of a and b are checked? Thanks lots...
You just need to retrieve the data from the database for that user and set the values to checked when the page is executed. it depends on how the values are saved to the database but basically something like: <% For i = 1 to NumberOfCheckBoxes %> <input type="checkbox" id="checkbox<%=i%>" checked="<%=isChecked(i)%>" /> <% Next %> Code (markup): function isChecked(i) should check the database values and return a true or false String accordingly.