I have var_dump a variable and it is empty
<p>I want to know the reasons why this variable is passing empty.</p>

<pre><code>&lt;form action="cart.php" method="POST"&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>Can you see $product['name'] how can I print the it's value after extracting it's values in cart.php as</p>

<p>extracts values</p>

<pre><code>list($aDoor, $variety,$productname) = split('_', $_POST['price']);
$aDoor = array();
$variety = array();
$productname= array();

foreach ($_POST['price'] as $p)
{
  list($a, $b,$c) = explode('_', $p);
  $aDoor[] = $a;
  $variety[] = $b;
  $productname[] = $c;
} 
</code></pre>

<p>Now below the foreach loop how can I echo the print of productname once..?</p>
