I have an HTML form that has some checkboxes like this:
[code=html]
<tr>
<td align=”left” class=”choice”>Choice One <input type=”checkbox” name=”description[]” value=”choice_one” /></td>
<td align=”left” class=”choice”>Choice Two& <input type=”checkbox” name=”description[]” value=”choice_two” /></td>
<td align=”left” class=”choice”>Choice Three <input type=”checkbox” name=”description[]” value=”choice_three” /></td>
</tr>
And then I want to print it our for a form with PHP like this:
[code=php]
if(is_array($_POST[‘description’])) {
foreach ($_POST[‘description’] as $value) {
$description .= $value . “<br />”;
}
}
But when I echo $description, it always precedes the values with the word “Array”…how do I avoid that?