Array fill with the Id´s of a SELECT
<p>I have to make an array with the POSTED value of one SELECT.   The SELECT selects the products ONE BY ONE. First I choose one product and POST it then another product and I POST the SECOND ONE and so on.....
I want to create an array of the ID of the products that are posted by the SELECT but this array has to grow while I introduce more and more products.</p>

<p>I have use this but It makes the array with only the last product I have choosen.</p>

<pre><code>foreach($_POST['idproducto'] as $key =&gt; $val) {
$cadenaides = $cadenaides . "$val,";
}
$cadenaides = $cadenaides . 1;
</code></pre>

<p>I would like the array to have all the ID of the products I choose ONE BY ONE in the SELECT.</p>
