Create an array of different Id´s with the Id that are POST´ed in a select
<p>I have a <code>SELECT name="idproduct"</code> inside a FORM and its OPTION VALUE is the Id of the product that I have SELECTED.   I would like to make an array in PHP with the Id´s of the products that I have SELECTED one after another.<br>
EXAMPLE: </p>

<pre><code>$idproducts=(1, 2, 14, 24, 8)
</code></pre>

<p>On the top of the table I have the SELECT and first I choose one product.  Then I choose another one etc....    I need the Id´s of the choosen products in that select because down the page I have a table where I want to show the products I have selected at the top.</p>

<pre><code>$sql='SELECT    id_product,
        nameproduct,
        situation,
        quantity            
        FROM product
        WHERE id_product = "'.$idproducts.'"';
</code></pre>

<p>Somebody would explain me how can I make the array with the posted Id´s of the <code>SELECT</code>?</p>
