codice:
IDtitolo=request.querystring("IDtitolo")
response.write "<form method=get><select name=IDtitolo>"
' oppure
' IDtitolo=request.form("IDtitolo")
' response.write "<form method=post><select name=IDtitolo>"
' [OMISSIS APERTURA CONNESSIONE E RECORDSET]
Do while not RSNotizie.Eof
valore = RsNotizie("Titolo")
nome = RsNotizie("ID")
if IDtitolo = nome then
response.write("<option value=" & nome & " selected>" & valore &"</option>")
else
response.write("<option value=" & nome & ">" & valore &"</option>")
end if
RsNotizie.movenext
Loop
' [OMISSIS CHIUSURA RECORDSET E CONNESSIONE]
response.write "</select></form>"