confusion receiving an string value with functions list() and split()
<pre><code>buy.php

&lt;form action="cart.php"&gt;
&lt;input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="'  .    $variety['price']. '_'. $variety['variety'] '_'. $product['name']. '"  /&gt;
 &lt;/form&gt;
</code></pre>

<p>I am sending the input form above to cart.php inthere I receive it like:</p>

<pre><code>list($aDoor, $variety,$productname) = split('_', $_POST['price']);
$aDoor = array();
$variety = array();
$productname= // $productname is a string how can I set it up here?

foreach ($_POST['price'] as $p)
{
  list($a, $b,$c) = explode('_', $p);
  $aDoor[] = $a;
  $variety[] = $b;
  $productname =$c; // and I have put it equal to the variable $c here
}
</code></pre>

<p>The only problem above is receiving the index $product['name'] coming from the form in buy.php</p>

<p>In cart.php I have set it  up to be received by $productname but as you can see this is an string not a array how can I set it up when it is an string in with the functions list() and split() it confuses me.</p>
