Can anyone help me with this. What i'm trying to do is assign a value to each item in an array. So that when that item is selected from drop down menu the selection value is passed in http post.
Here's what my drop down menu looks like.
for($a=0;$a<=count($option_value)-1;$a++){
echo "<option value=\"".$assign_id[$a]."\">";
echo $option_value[$a] . " (".$option_symbol[$a]. " " $option_price[$a] .")";
echo "</option>\n";
}
That gives me this.
Color: red
green
blue
Currently the only thing being passed in http post is "$assign_id". This happens to be the number of that particular row present in one of the tables in my db.
The entry is structured as such.
Option: Value: row_id:
Color red,green,blue 1