Forum Moderators: open
<%=Request("ID")%>
The checkbox is inside a database results form. When I check one or more than one box I get no data. I checked the source code on the page and it shows Checkbox Value = "" so obviously I am using the wrong request code above.
Here is the line of code for the checkbox:
<input type="checkbox" name="C1" value="<%=Request("ID")%>">
I was hoping that when someone searrched my database and found a record or records that they like they could simply check one or more boxes and the ID(s) would then be submitted to another table inside the same database that displayed the results. Problem is I don't know code very well so I am using FP Database Results Inside a Form that can be submitted but the Request ID is blank after the results. With or without the box being checked.
<input type="checkbox" name="C1" value="<%=rst("ID")%>">
Where rst is the recordset object that you're using to display the form data.
You then pick up the ID(s) on the page your form submits to, eg to just display the ID's:
For i = 1 to Request("C1").Count
Response.write Request("C1")(i) & "<br>
Next