Well, the easiest solution (I think) is to make sure that you first of all have the variables in an array. I.e. use names on your inputs like answer[question1], answer[question2] etc.
Whenever this page is submitted, you have an array called $answer with all the (d-oh) answers in it. Now, there are several techniques to convert this to a comma separated list. The most obvious one would be $string = implode(', ', $answer);.
Alternately, I paste a function i wrote ages ago, just in case it's of any interest.
function implode_array2csv($array, $separator, $quote) {
$csv = "";
foreach ($array AS $key => $val) {
$csv .= "$quote$val$quote$separator";
}
$csv = substr($csv, 0, strlen($csv)-1);
return $csv;
}
Note that I remove the trailing $separator (wich usually is ',' or ';') with a simple substr. That is, remove the last character, as i know it's a separator. This might not be all good. Oh well, hope it helped.