我有很多文本框。我想遍历列表元素并将它们的值发布到数据库中。我怎样才能在asp中做到这一点?
Set dataCon = Server.CreateObject("ADODB.Connection")
Set rsAwards = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM Awards"
rsAwards.Open strSQL, dataCon
<form name="sort_award" action="action_awards.asp?Action=sort&Award_ID=<%=Award_ID%>" method="post">
response.write "<ul id='sortable'>"
dim i
i=0
While not rsAwards.EOF
response.write "<li onclick='sort()'><input type='text' id='AwardNum' size='1' value="&i&" ></li>"
rsAwards.MoveNext
i=i+1
Wend
response.write "</ul></form>"