0

please help me with this:),

what i wanted to do is to retrieved all the values in table per row.
how do i do this? in checkboxes.please help.

heres my code:

echo "<td><input type='checkbox' name='enrolldis[][][]' value=''></td>";

echo "<td>$secname</td><td>$subjcode</td><td>$subjname</td><td>$schoolyear</td><td>$room</td><td>$days</td><td>$sectime</td><td>$slotavailable</td><td>$unitload</td>";echo "</tr>";

how do i put values in arrays of checkboxes?

tnx

2
Contributors
5
Replies
7
Views
7 Years
Discussion Span
Last Post by diafol
0

enrolldis[][][] looks suspect. What are you trying to do with this?

enrolldis[] will work to place your checked checkboxes into an array.

0

enrolldis[][][] looks suspect. What are you trying to do with this?

enrolldis[] will work to place your checked checkboxes into an array.

well what im trying to do is to add the values from the rows. at least to values from each row.

0

Which rows are you talking about? The table rows??

You can't pass these values, if that's what you're trying to do, unless they are in a form widget (like a hidden field).

-1

so how do i do this? to fetch the values in a row whenever i click the selected checkbox and click the submit button? please sir help me

0

I'm sorry, I don't have the energy to explain. This is basic html form stuff. There are loads of free online resources. Once you've learned html forms come back with the php query.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.