Hi
I posted two queries. But i didn't get any replies. Pls go through my queries and try to give some ideas.
Query (1):
How to get the values of dynamically created checkboxes which are checked and unchecked (for both the conditions). Only the selected checkbox values are posted as 'On' . How can i get the value of unchecked checkboxes ?
Each row contains 7 checkboxes. These rows are created dynamically by clicking a button. When the page is posted , i need to get the values as
row1 checkbox1[1] = selected checkbox2[1] = notselected checkbox3[1] = selected
row2 checkbox1[2] = selected checkbox2[2] = notselected checkbox3[2] = selected
row3 checkbox1[3] = selected checkbox2[3] = notselected checkbox3[3] = selected
.....
How i could handle this ?
Query (2)
In my php code , i dynamically created table rows on button click event.
Each row contain 3 selectboxes, 7 checkboxes . On each click of these elements i need to submit the form and save the data to database. After each submit , i need to display the previous added details (with some checkboxes checked and some others unchecked ..) and one new row for next updation.
Here i need to collect all values submitted in the php page.
There i should able to distinguish each row sets values (with their checkboxes status. on or off). Also , i'm unable to submit the form for newly added rows . Though the action is given as '... e1.onchange = test()...' , it is not working.
One more query,
These rows are added using javascript function, but the values are to be fetched from database. How can i handle this ? Or whether i need to write javascript code using php script. i.e
echo '<script language=javascript>....</script>';
Pls post your replies.
Thanks in advance
somaskarthic