|
-
Jan 4th, 2001, 11:40 AM
#1
Thread Starter
Junior Member
If the checkboxes I am using have been created this way (below) with name="<%rsOptions.Fields("Description")%> and the value="<%=rsOptions.Fields("ID")%> how would you save them?
<tr>
<%Set rsOptions = Server.CreateObject("ADODB.Recordset")
rsOptions.Open strSQL, dbData, 1, 3
If Not(rsOptions.EOF AND rsOptions.BOF) Then rsOptions.MoveFirst
numincol = rsOptions.recordcount \3+1
Do Until rsOptions.EOF%>
<td valign="top">
<%for i = 1 to numincol
If rsOptions.EOF Then Exit For%>
<input type="checkbox" name="<%=rsOptions.Fields("Description")%>" value="<%=rsOptions.Fields("ID")%>" <%If rsOptions.Fields("Exist") <> vbNullString Then Response.Write " checked"%>>
<%=rsOptions.Fields("Description")%><br>
<%rsOptions.MoveNext
Next%>
</td>
<%Loop%>
</tr>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|