I am offering a series of options which attract price additions
eg Bevelled Glass +£20, Mirror Glass +£10, Antique Effect +£20
So I have two array variables $option_description
and $option_price
and
I am making a <select>
element with the options thus;
<select>
<option value='0'>Please select...</option>
<option value='<?=$option_price[0]; ?>'><?=$option_description[0]; ?> +£<?=$option_price[0]; ?></option>
...
</select>
What I need to do, after the user has made their selection, is pass the two variables separately in the $_POST[]
variable. The price will be added at submission to the price field and the description needs to be in the order as an instruction.
How do I handle my user choice given that the value of $option_price is not unique?