You can't do it using pure HTML but one way using JavaScript would be to set a hidden field with the value:
Code:
<form name="myForm" onsubmit="addOptionText();">
<select name="lstUsers" id="lstUsers">
<option value="1">Joe</option>
<option value="2">Pete</option>
<option value="3">Steve</option>
</select>
<input type="hidden" name="lstUserText" id="txtUserText">
</form>
in your script block:
Code:
function addOptionText()
{
var lst = document.getElementById("lstUsers");
var txtHidden = document.getElementById("txtUserText");
txtHidden.value = lst.options[lst.selectedIndex].text;
return true;
}
Now your server will pick up the text part in lstUserText and the value part in lstUsers.
Change the hidden element to a text one if you want to debug.
--
Joe (
Microsoft MVP - XML)