MsKawasakiMotoc
New Member
I'm working on modifying an existing shopping cart application so I'm fumbling through this. Using PHP 5 and mySql.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.It should show the attributes, but it just has the word "Array."The email portion sends this:Product Name: (whatever the product is)Attributes: ArrayProducts Options Name: (whatever product option is)This code is used to generate the product info in the email:\[code\]$message .= '<p style="font:bold 14px/25px Verdana, Arial, Helvetica, sans-serif;margin:0; padding:0;"><strong>List of Products</strong></p><br /><br />' . "\n";if (is_array($arr_product_list)){ foreach($arr_product_list as $value) { $message .= '<strong>' . $value . '</strong><br />' . "\n"; }}\[/code\]This is the code used to display the products on the rendered page:\[code\]$productsname = $product['productsName'];$attributes = $product['attributes'];$products_options_name = $value['products_options_name'];$arr_product_list[] = "<strong>Product Name:</strong> $productsname <br />";$arr_product_list[] .= "<strong>Attributes:</strong> $attributes <br />";$arr_product_list[] .= "<strong>Products Options Name:</strong> $products_options_name <br />";$arr_product_list[] .="---------------------------------------------------------------";\[/code\]And here's what is showing on the rendered page where they should choose the product and attribute:\[code\]<div class="wrapperAttribsOptions"> <h4 class="optionName back"><label class="attribsSelect" for="attrib-14">SPK Model</label></h4><div class="back"> <select name="id[14]" id="attrib-14"> <option value="http://stackoverflow.com/questions/1996519/43">SPK-4</option></select></div>\[/code\]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. Any help would be appreciated.Thanks!