Hi,
Let's say I have an "array" of checkboxes on a form:
<input type="check" name="dn[1]">
<input type="check" name="dn[2]">
<input type="check" name="dn[3]">
<input type="check" name="dn[4]">
<input type="check" name="dn[5]">
<input type="check" name="dn[6]">
Then I submit it. How can I make variable $dn an array? Is there a better way to do this? I need to be able to find out which checkboxes are checked.
Advice appreciated,
-Matt
Let's say I have an "array" of checkboxes on a form:
<input type="check" name="dn[1]">
<input type="check" name="dn[2]">
<input type="check" name="dn[3]">
<input type="check" name="dn[4]">
<input type="check" name="dn[5]">
<input type="check" name="dn[6]">
Then I submit it. How can I make variable $dn an array? Is there a better way to do this? I need to be able to find out which checkboxes are checked.
Advice appreciated,
-Matt




