Checkbox Value: check, submit, change later (DB stuff)
Hi everyone!
I have a form with large amount of checkboxes.
1. checkboxes can be - surprise
- checked and submitted into the database
2. checkboxes values should be retrievable if I run a SELECT query on the result, meaning if I come back to this form later, my previous selection displays as selected checkbox.
3. I want to be able to uncheck and re-check the checkboxes, to change my data.
I thought just doing this would be sufficient: (given I already ran the query to select data from the table, and did proper open/close of results display)
PHP Code:
<input type="checkbox" name="230" value='<?php echo $row['230']; ?>
I can seem to figure it out... Can anyone give me an idea?
Thanks a bunch!
Absence of a result is a result, unless defined otherwise.
Bookmarks