what would cause a field to return array in php?
<p>I'm working on modifying an existing shopping cart application so I'm fumbling through this. Using PHP 5 and mySql.</p>

<p>The code sends an email message to the client and to the user that shows which product they are interested in. The page is rendering the product and the attributes correctly. When the email is sent the product portion works but the attributes don't work.</p>

<p>It should show the attributes, but it just has the word "Array."</p>

<p><em>The email portion sends this:</em></p>

<p>Product Name: (whatever the product is)</p>

<p>Attributes: Array</p>

<p>Products Options Name: (whatever product option is)</p>

<p><em>This code is used to generate the product info in the email:</em></p>

<pre><code>$message .= '&lt;p style="font:bold 14px/25px Verdana, Arial, Helvetica, sans-serif;
margin:0; padding:0;"&gt;&lt;strong&gt;List of Products&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;' . "\n";
if (is_array($arr_product_list)){
        foreach($arr_product_list as $value) {
            $message .= '&lt;strong&gt;' . $value . '&lt;/strong&gt;&lt;br /&gt;' . "\n";
        }
}
</code></pre>

<p><em>This is the code used to display the products on the rendered page:</em></p>

<pre><code>$productsname = $product['productsName'];
$attributes = $product['attributes'];
$products_options_name = $value['products_options_name'];

$arr_product_list[] = "&lt;strong&gt;Product Name:&lt;/strong&gt; $productsname &lt;br /&gt;";
$arr_product_list[] .= "&lt;strong&gt;Attributes:&lt;/strong&gt; $attributes &lt;br /&gt;";
$arr_product_list[] .= "&lt;strong&gt;Products Options Name:&lt;/strong&gt; $products_options_name 
&lt;br /&gt;";
$arr_product_list[] .=
"---------------------------------------------------------------";
</code></pre>

<p><em>And here's what is showing on the rendered page where they should choose the product and attribute:</em></p>

<pre><code>&lt;div class="wrapperAttribsOptions"&gt;
  &lt;h4 class="optionName back"&gt;&lt;label class="attribsSelect" for="attrib-14"&gt;SPK
  Model&lt;/label&gt;&lt;/h4&gt;
&lt;div class="back"&gt;
  &lt;select name="id[14]" id="attrib-14"&gt;
   &lt;option value="43"&gt;SPK-4&lt;/option&gt;
&lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>I guess where I'm really confused is I don't see where anything is called attrib-14 or id14 in the code that sends the email so I'm having problems figuring this out. </p>

<p>Any help would be appreciated.</p>

<p>Thanks!</p>
