Retrieving data from a database to a checkbox
Posted on 2011-09-26
I am currently working on a mini web application that allows a user to input data into a database and then do a search on these records and bring it back up for editing purposes.
I am able to retrieve data into textboxes and labels however, i don't know where to begin to retrieve a checkbox.
Currently, the submit form have 4 checkboxes (i.e. CB1, CB2, CB3, CB4) that a user can select. A user can select more than one checkboxes. When i go into the search link, i can't retrieve the data so that whatever the user selected reflects as a checked checkbox.
Can someone give me some insight as to how to start this?