0
I am a beginner in programming and I would like to know how to take the value of the selected option and put in a variable? for example, the user chooses 'Old'. and I save his choice in a variable
<select id="cmbTempo" name="cmbTempo">
<option>Selecione:</option>
<option value="old" >Antigas</option>
<option value="new">Atuais</option>
<input type="submit" name="btnOK">
</select>