Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (bgrg007):

$php/html question. If I had more than one checkbox in each row in a table, let's say, I had 10 checkboxes in each row of a table, does each checkbox in each row have its own unique array name or all 10 checkboxes in each row have one name? example: for($i = 1; $i<=10; $i++){ ;}

OpenStudy (lyrae):

Yes, checkboxes in the same group have the same name and some value. See: http://www.w3schools.com/tags/att_input_checked.asp

OpenStudy (bgrg007):

Then, how can I check which checkboxes in each row has been checked? I've tried a few things but none worked.

OpenStudy (harsha19111999):

Try the isset() function. With that, you can give each checkbox a name and chek whether if that check box is ticked or not

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!