According to the code you posted. the name of every checkbox control, as well as the submit button, is going to be update. And the value for each of the checkboxes will be the same: Submit.
Is that what you intended?
[ November 17, 2005: Message edited by: Bear Bibeault ]
nope bear, each checkbox generated will be pointing to different rows in the database. Anyway here's the full code:
when the update button is clicked, it will scans through each row in the table to check whether the checkbox is checked. If it is checked, then the database will update the payment field using the payment.getPeoplewise() as the primary key.
Hi bear, the thing is I have no idea how I should code the checkboxes so bear with me if I got the checkbox line of code wrong.
I need guide on how should I code the line of dynamically generated checkboxes so that it not only can display according to the database but can also update the database when users click on the update button.
for the meantime I'm able to retrieve which checkbox is selected, however only one checkbox can be retrieved although I checked on multiple boxes. So can anyone please advice me how can I retrieve all the checked values??
Also I have been getting pointers that I should be using struts instead on the internet. Is this true? Please advice.