Ok, I figured out how to give one variable multiple values dynamically.
But still having trouble getting PHP to recognize all the values in the array.
Giving multiple values to a variable was pretty easy. Just create a empty array and when a checkbox is clicked, populate that array by doing the following:
var ccbArray:Array = [];
if(checkBox0.selected)
{
//trace("Mozza");
ccbArray.push(14);
}
if(checkBox2.selected)
{
ccbArray.push(12);
}
if(checkBox3.selected)
{
ccbArray.push(13);
}
The array values are sent in a variable as thus:
variables.myVar = ccbArray;
In ActionScript, when I trace the results of my array I get, for example, 12,13,14. A simple comma-delimited sequence of numbers. Now I just have to pass that to $_POST[‘myVar’]. PHP can’t handle that without a hack?