Hi all,
I've got a dynamic HTML form driven by a database with a group of checkboxes. I haven't got any problems taking the values from the checkboxes and inserting them in the database or populating the checkboxes with corresponding values from the database. My problem is that if a user un-select a checkbox I don't know how I can program my PHP to detect this. Now the checked values are passed in an array through form submit but I don't know how to deal with the unchecked, since also these values needs to be stored in the database. Also my dynamic html page doesn't have a constent number of checkboxes. These could vary from 1 to many.
My db table looks like this
objId Team value (checked/not checked)
1 1 0
1 2 0
1 3 1
2 1 1
2 6 0
Thanks
Erik
I've got a dynamic HTML form driven by a database with a group of checkboxes. I haven't got any problems taking the values from the checkboxes and inserting them in the database or populating the checkboxes with corresponding values from the database. My problem is that if a user un-select a checkbox I don't know how I can program my PHP to detect this. Now the checked values are passed in an array through form submit but I don't know how to deal with the unchecked, since also these values needs to be stored in the database. Also my dynamic html page doesn't have a constent number of checkboxes. These could vary from 1 to many.
My db table looks like this
objId Team value (checked/not checked)
1 1 0
1 2 0
1 3 1
2 1 1
2 6 0
Thanks
Erik