I THINK that if you create a hidden value like this:
<input type=hidden name=somearray[]>
You can manipulate it via javascript as an array:
<script>
document.myform.somearray[0].value='abc';
</script.
(I THINK I remember that this works with hidden values, however this DEFINITELY works with Selects as I do this all the time)
<SELECT name=myselect[] multiple>
MAKE SURE TO REMEMBER TO MAKE such SELECTS 'multiple'
add to the form code something to select all options before submitting:
onsubmit='selectall(document.myform.myselect[])';
that function looks something like this:
function selectall(object){for(var i=0;i<object.options.length;i++){object.options.selected = true;}}
Only selected elements of an array are submitted to $_POST
NOTE I sometimes have trouble with javascript burping on a passing a reference to select by name ending in [], and so I pass it as document.myform.elements[0] (or [1], or [2] or whatever);
If you don't want the info visible, you can then set the document.myform.myselect.visible=false;