I have a checkbox area that allows a person to select 8 differnt options. all the check boxes have the same variable name. How do i get that one variable to list all the selected check boxes in that one name?
is that an array if so what type?
thank you
array?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
<input type="checkbox" name="your_array_nameї]" value="larry" />
<input type="checkbox" name="your_array_nameї]" value="moe" />
<input type="checkbox" name="your_array_nameї]" value="curly" />
<input type="checkbox" name="your_array_nameї]" value="shemp" />-
pinehead18
- Forum Contributor
- Posts: 329
- Joined: Thu Jul 31, 2003 9:20 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
$commas = join(',', $_POSTї'your_array_names']);