Hi , I am using an explode function to split some comma separated colors into a drop down list.
<?php
// Split the string up into an array of values
$dropdown_data = explode(",", $row_rsApparel['Item_Colors']);
// Output a dropdown
echo '<select name="color" id = "color">';
foreach($dropdown_data as $key => $value) {
echo '<option value="'.$key.'">'.$value.'</option>';
}
echo '</select>';
?>
The drop down works perfectly but I can't seem to get that info into the cart. If I use a standard drop down list in dreamweaver, no problem binding that to the cart. Just not sure how to bind the selection from a php generated list into the cart?
any help would surely be appreciated.
thanks nigel