[eluser]CroNiX[/eluser]
[quote author="caperquy" date="1294023268"]I am building a dropdown list using form_dropdown. I pass an associative array of options which results in something like :
<option value="0">Arménie</option>
<option value="1">France</option>
<option value="2">Brésil</option>
My problem is that the submit returns, for example 1 to my controller, but I then do not know how to identify the string France which is the only thing I am interested in.[/quote]
If you aren't going to use or need the actual key (the country is all you are interested in), then why not put IT as the key?
<option value=“Arménie”>Arménie</option>
<option value=“France”>France</option>
<option value=“Brésil”>Brésil</option>