.oO(Shaun)
Quote:
I have a form on my site that lists all of the projects in the system.
tr
td>Test Project</td
td><input type="checkbox" value="11" ></td
/tr
etc...
How can I check which boxes have been ticked using PHP when the form is
submitted so the database can be updated appropriately? |
1) Add a name-attribute to the input-element.
2) Dependent on the used submit method (get or post) check the global
arrays $_GET or $_POST for an element named like the input-element:
HTML:
<input type="checkbox" value="11" name="foo">
PHP:
$foo = isset($_GET['foo']);
Now $foo is either TRUE or FALSE, dependent on the checkbox status.
HTH
Micha