You can do using,
strId="<select name='selID'>"
while not rs.eof
strId=strId & "<option value='" & rs("id") & "'>" & rs("desc") & "</option>"
rs.movenext
wend
strId=strId & "</select>"
when you submit the form the select control value (ID in this case) is passed. And the user can see desc only.
|