I can't figure out how to echo a checkbox array. My code returns an endless repeated list of the word Array.
Here is my code:
<input type="checkbox" name="6[]" value="Apple">
<input type="checkbox" name="6[]" value="Orange">
<input type="checkbox" name="6[]" value="Pear">
<?
$answer6 = $_POST['6'];
while ($i = $answer6){
echo $i."<br>";
}
?>
I know I'm probably missing something really basic.
Thanks in advance!