How to get dropdown option label from POST request?
<p>I have this array that populates a dropdown menu. The key is my database key and the value is the corresponding database value. The issue I am having is that when I POST the form, I am getting the POSTed numerical value instead of the string value in the dropdown list. I could query the database to get the string but there has to be a better way of doing this as I already have both values in an array. I can't use array_search because the the array is multidimensional. Can someone please offer a hand?</p>

<p>Thanks</p>

<pre><code>foreach($dd as $k=&gt;$v)
{
 echo'&lt;option value="'.$v['ace_id'].'"&gt;'.$v['arua'].'&lt;/option&gt;';
}
</code></pre>
