Catching All Checkbox Changes
Posted: Wed Nov 15, 2006 10:29 am
Hi Guys
Just wondering if you could help me solve this problem. I create a table with values from my database.
The table is dynamically created and each row contains a checkbox
The checkbox is checked or unchecked depending on a value in the database. If you check an unchecked box and press the submit button I can get the checked checkboxes using :
Which works fine. Now my question! If the checkbox was originally checked and the user unchecks it and then presses the submit button. How can I tell that this button was unchecked?
Thanks in advance for your time
Just wondering if you could help me solve this problem. I create a table with values from my database.
The table is dynamically created and each row contains a checkbox
Code: Select all
<td align="center"><input type="checkbox" name=<?echo $i ; ?> value="webyn"></td>Code: Select all
foreach ($_POST as $key => $value )
{
echo $key;
}Thanks in advance for your time