<?php
foreach($HTTP_POST_VARS['S1Q3'] as $value) {
echo "<input type=hidden name=\"S1Q3\" value=\"$value\">\n";
}
?>
I would like is so that the value would be the values of the items in the array, thus:
Code: Select all
<input type="checkbox" name="S1Q3ї0]" value="0"><br>
Playing interactive games is unsociable
<input type="checkbox" name="S1Q3ї1]" value="1"><br>
Playing interactive games is boring
<input type="checkbox" name="S1Q3ї2]" value="2"><br>
Playing interactive games is geeky
<input type="checkbox" name="S1Q3ї3]" value="3"><br>
They're expensive
<input type="checkbox" name="S1Q3ї4]" value="4"><br>
I have never had the opportunity
<input type="checkbox" name="S1Q3ї5]" value="5"><br>
I don't have the time
<input type="checkbox" name="S1Q3ї6]" value="6"><br>
Other
<input type="checkbox" name="S1Q3ї7]" value="7"><br><input type="hidden" name="S1Q3" value="0|1|3"> and so on....
Any ideas.