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

Member Avatar for diafol

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

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

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.

Member Avatar for diafol

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).

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

Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.