'; if ($how_many>0) { echo 'You chose the following fruits:
'; } for ($i=0; $i<$how_many; $i++) { echo ($i+1) . '- ' . $fruit[$i] . '
'; } echo "
"; } ?>
Choose a fruit:
apples
oranges
peaches
mangos