I'm trying to read the values from a listbox and I can't get it it to work. Can anyone help?
I want to be able to pass through all records displayed in this listbox
<form name="frmAggregate" method="post" action="aggregate_confirm.asp">
<SELECT Name="LstAccounts" size=10 style="HEIGHT: 275px; WIDTH: 250px" >
<%
dim rs
set rs = server.CreateObject("ADODB.Recordset"
set rs = ListClients()
do until rs.eof
Response.Write "<option value=" & rs("GRID" & ">" & rs("ClientName" & "</option>"
rs.MoveNext
loop
rs.Close
set rs = nothing
%>
</SELECT>
</form>
So in aggregate_confirm.asp
I try the following which doesn't work
arrClients = Split(Request.Form("LstAccounts",", "
For i = 0 to iClients
Response.Write arrClients(i) & "<br>"
Next
I want to be able to pass through all records displayed in this listbox
<form name="frmAggregate" method="post" action="aggregate_confirm.asp">
<SELECT Name="LstAccounts" size=10 style="HEIGHT: 275px; WIDTH: 250px" >
<%
dim rs
set rs = server.CreateObject("ADODB.Recordset"
set rs = ListClients()
do until rs.eof
Response.Write "<option value=" & rs("GRID" & ">" & rs("ClientName" & "</option>"
rs.MoveNext
loop
rs.Close
set rs = nothing
%>
</SELECT>
</form>
So in aggregate_confirm.asp
I try the following which doesn't work
arrClients = Split(Request.Form("LstAccounts",", "
For i = 0 to iClients
Response.Write arrClients(i) & "<br>"
Next