same name for multiple inputs
<p>I have a form... where I have to use the same name for fields for every product that I have on the form.</p>

<p>PartNo, Item and Price, this cannot vary if I want to add multiple items with one order button. The example code below works for adding multiple items to the cart with Cart32's shopping cart software. I would like to know how they use the same name like PartNo for many items, and are able to retrieve all the values for that field.</p>

<p>I tried writing my own page to receive the input, and for the life of me, I cannot get multiple items for any of the repeated field like PartNo, Qty and Price. I have tried $_REQUEST, $_POST and $_GET and I only get the last value so it is not a case issue.</p>

<p>here is a stripped down example.  </p>

<pre><code>&lt;FORM name ='x' METHOD="post" ACTION="https://www.cart32.com/cart32.ex…
&lt;!-- item 1 --&gt;
&lt;div id'=x'&gt;
#1 | desc1 | $27.99 Qty: &lt;input type='text' size='3' name='Qty' value='0'&gt;
&lt;input type=hidden name='PartNo' value='11'&gt;
&lt;input type=hidden name='Item' value='product1'&gt;
&lt;input type=hidden name='Price' value='27.99'&gt;
&lt;/div&gt;


&lt;!-- item 2 --&gt;
&lt;div id'=x'&gt;
#2 | desc2 | $7.99 Qty: &lt;input type='text' size='3' name='Qty' value='0'&gt;
&lt;input type=hidden name='PartNo' value='11'&gt;
&lt;input type=hidden name='Item' value='product1'&gt;
&lt;input type=hidden name='Price' value='7.99'&gt;
&lt;/div&gt;

&lt;div&gt;&lt;input type='submit' value='Order'&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>
