I am new to PHP. I am looking guidance on how to insert two values for each checkbox into my table in a seperate row. I have 14 checkboxes, which I wish to name 1, 2, 3, 4, 5 etc...(which will insert into eNISATID column). I want each name of the checkbox to insert into my 'eNISATID' column (1-14), as well as value of 1 or 0 into 'eNISAT_watch' depending if the checkbox has been selected or not.
My table has the following structure:
eNISATanswersID (AUTO-INCREMENT) eNISATID (I want this to be the name of my checkbox, 1-14) eNISAT_watch (value or 1 or 0 depending if the checkbox has been selected or not)
Can anyone help on how best to approach this?
Thank you
Aucun commentaire:
Enregistrer un commentaire