That allows be to specify the selected value of the dropdown, however, If someone changes is and submits the form, and there is an error, it defaults back to the original selected value, and they have to reselect their value. I want their value to remain, so they don't have to fill out the form fields again. In a normal dropdown where the cvalues are hard coded, I do this:
<option value="Yes"<? echo $money == "Yes" ? ' selected' : ''; ?>>Yes</option>
<option value="No"<? echo $money == "No" ? ' selected' : ''; ?>>No </option>
but I need to know how to to that when the values are pulled from an array.