Phil, I added a line to your solution. repeat with i = 1 to 40 put "Q" & i into tKey put the value of tKey into tKey --- ADDED LINE HERE put $_POST[tKey] & comma after theSubmission end repeat Mike