How to put in a php variable the text and not the value of an option? If it is java script, I still put the text in the variable, since I need to work with that text.
html example:
<select name="uf" id="uf">
<option value="1">AC</option>
<option value="2">AL</option>
<option value="3">AM</option>
</select>
After submitting, I can only get the value:
$idestado = $_POST['UF'];
How do I put the text in this variable:
$nomeestado = ???