sending the elements of a select form to another one
<p>it's my first post here and I so sorry if I wrong the place.
My difficulty is view the elements of the first select form to the other one if the first form is set as array.
The goal is to send the elements of a select form to another one and then record them on a db MySQL, that will show them on a html page.
I found in this forum the procedure how to create two select form and add 'n remove the items, then with the command .implode of MySQL can join the element and insert multiple items on db and view them on page.
But if I set the name's select form as array it doesn't work. I've used the following script to have two select form :</p>

<pre><code>&lt;script language="javascript"&gt;
function getOpt(select1,select2)
{
for (bCnt=0;bCnt&lt;select1.length;bCnt++)
{
if (select1.options[bCnt].selected)
{
newOpt=new
Option(select1.options[bCnt].text,select1.options[bCnt].value,false,false);
select2.options[select2.length]=newOpt;
}
}
}

function remOpt(select2)
{
for (bCnt=0;bCnt&lt;select2.length;bCnt++)
{
if (select2.options[bCnt].selected)
select2.options[bCnt]=null;
}
}
&lt;/script&gt;
</code></pre>

<p>then the selects form:</p>

<pre><code>&lt;table border="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;label for="id"&gt;List:&lt;br&gt;&lt;/label&gt;
&lt;select name="oneS" id="select_role" size=20 required multiple="multiple"/&gt;
&lt;option value="101"&gt;101&lt;/option&gt;
&lt;option value="102"&gt;102&lt;/option&gt;
&lt;option value="103"&gt;103&lt;/option&gt;
&lt;option value="104"&gt;104&lt;/option&gt;
&lt;option value="105"&gt;105&lt;/option&gt;
&lt;option value="106"&gt;106&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;input type="button" value="Add"onClick="getOpt(this.form.oneS,this.for m.twoS)"&gt;&lt;br&gt;
&lt;input type="button" value="Remove"onClick="remOpt(this.form.twoS)"&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;label for="id"&gt;Members List:&lt;br&gt;&lt;/label&gt;
&lt;select name="twoS" id="select_role" size=20 multiple="multiple"/&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>if comment the script,the part of the buttons, the second form and change the line:</p>

<pre><code>&lt;select name="oneS" id="select_role" size=20 required multiple="multiple"/&gt;
</code></pre>

<p>in</p>

<pre><code>&lt;select name="oneS[]" id="select_role" size=20 required multiple="multiple"/&gt;
</code></pre>

<p>I have any issue, can record the items of the first select form on db and view them on the page. 
But it's not my goal, I've have to use 2 select form. 
Is there some one can help me? thanks a lot. </p>
