jkarp
10-25-2005, 01:32 PM
Working on a page where checkbox's are generated and named dynamically as below:
***statement within loop****
response.write("<input type='checkbox' name=abox"&i&" checked>")
The variable "i" is used the increment the checkboxes with a unique name. This form posts to another where I try and request the value from the checkbox. Normally I would request the value by doing some thing like this:
If Request("abox")= "on" then
However, since I need to have a variable name I am not sure how to request it. I have tried the example below with no luck. Anyone have any insight on how this should be requested?
If Request("abox"&i)= "on" then
***statement within loop****
response.write("<input type='checkbox' name=abox"&i&" checked>")
The variable "i" is used the increment the checkboxes with a unique name. This form posts to another where I try and request the value from the checkbox. Normally I would request the value by doing some thing like this:
If Request("abox")= "on" then
However, since I need to have a variable name I am not sure how to request it. I have tried the example below with no luck. Anyone have any insight on how this should be requested?
If Request("abox"&i)= "on" then