Unable to post values from a dynamic row containing a multiselect list box
<p>I am able to dynamically create a multiple list box but I cannot post the values. The select element is a 2 dimensional array and I am not getting any values returned from the options.</p>

<p>Here is my javascript code:</p>

<pre><code>function createSelectCell(cell,column,multiselect_type_flag)
{
var copyListBox = document.getElementById(column);
var newListBox = document.createElement('select');

if(multiselect_type_flag == 'F')
{
    newListBox.name = 'column_array_'+column+'[]';
}
else if(multiselect_type_flag == 'T')
{
    newListBox.name = 'column_array_'+column+'[][]';
    newListBox.size = '4';
    newListBox.setAttribute('multiple', 'multiple');
}

for (var i = 0; i &lt; copyListBox.options.length; i++)
{
    var newOption = document.createElement("option");
    newOption.text = copyListBox.options[i].text;
    newOption.value = copyListBox.options[i].value;
    newListBox.appendChild(newOption);
}
cell.appendChild(newListBox);
}
</code></pre>

<p>Requested for html in comments:</p>

<pre><code>echo "&lt;td&gt;&lt;select id='".$column."' name='column_array_".$column."[$i][]' multiple='multiple' size='4'&gt;";
</code></pre>

<p>When I do <code>print_r($_POST['column_array_'.$column]);</code> I get:</p>

<pre><code>Array ( [0] =&gt; Array ( [0] =&gt; Secondary Contact ) [1] =&gt; Array ( [0] =&gt; Authorised to log calls ) ) 
</code></pre>

<p>when I should be getting: </p>

<pre><code>Array ( [0] =&gt; Array ( [0] =&gt; Secondary Contact [1] =&gt; Authorised to log calls ) )
</code></pre>
