Hi there.
I want to :
1) read through a database table and return all rows
2) for each row display (on the screen) a checkbox and input textbox
ie.
cb NAME inputbox
cb NAME inputbox
cb NAME inputbox
cb NAME inputbox
3) be able to see what checkboxes are ticked and values of the textbox on that row.
4) write to files.
1 and 4 are simple.
2 -is usually done thru a recordset
3 is the issue
I'd usually do it (in another language) with a multidimenisional array -except that I don't know how many rows the table will contain.
And I can't find a way to add to a multi diminesional array 'on the fly'.
OR to set the size of the array based on number of rows returned.
my other option for 3 would be a variable variable
ie while not recordset.eof
<td><input type="checkbox" name="ID<% = recordset.Fields("ID"
%>"></td>
<td><span class="menutext"><% = recordset.Fields("Description"
%></span></td>
<td><span class="inputtext" name="Date<% = recordset.Fields("ID"
%>"><% = recordset.Fields("Date"
%></span></td>
wend
is this possible or am I wasting my time???
Thanks
I want to :
1) read through a database table and return all rows
2) for each row display (on the screen) a checkbox and input textbox
ie.
cb NAME inputbox
cb NAME inputbox
cb NAME inputbox
cb NAME inputbox
3) be able to see what checkboxes are ticked and values of the textbox on that row.
4) write to files.
1 and 4 are simple.
2 -is usually done thru a recordset
3 is the issue
I'd usually do it (in another language) with a multidimenisional array -except that I don't know how many rows the table will contain.
And I can't find a way to add to a multi diminesional array 'on the fly'.
OR to set the size of the array based on number of rows returned.
my other option for 3 would be a variable variable
ie while not recordset.eof
<td><input type="checkbox" name="ID<% = recordset.Fields("ID"
<td><span class="menutext"><% = recordset.Fields("Description"
<td><span class="inputtext" name="Date<% = recordset.Fields("ID"
wend
is this possible or am I wasting my time???
Thanks