Hi folks,
I have a mysql database and I have written some PHP to view records, add records, delete records and update records. The problem I have is updating checkbox fields of a record. Everyhting was working fine and updating correctly.
Then I tried to automatically populate the form fields with data held in the database. I can get everything populated correctly and the text boxes update correctly but the checkboxes always return the original value and ignores any changes made to them.
The code I am using to populate the form fields is ...
echo "<input type='checkbox' name='DayRemind' value='$row[DayRemind]' /> Day Reminder<br />";
Does anyone know of a way I can populate the checkboxes with whatever value is in the database but also allow changes to be made to them?
Zagga