how to retrive checkbox array
Posted: Sun Jan 21, 2007 10:29 am
hi,
i have a group of checkboxes with all of their name fields marked as name=checkbox[]
in html for eg.
etc.
now i want to write a php script to get the "value" attribute of the checked checkboxes so how can i do that?
i have a group of checkboxes with all of their name fields marked as name=checkbox[]
in html for eg.
Code: Select all
<input type="checkbox" name="checkbox[]" value="foo1" />
<input type="checkbox" name="checkbox[]" value="foo2" />
now i want to write a php script to get the "value" attribute of the checked checkboxes so how can i do that?