I have created a for to loop in vbscript which retrieves querystrings from the HTTP header.
Now I want to declare variables like name1, name2, name3, name4 etc. inside this for to loop but till now it didn't work... ;-(
This is my code:
Code:
for i=1 to categories
filetype = "type_" & i
desc = "description_" & i
filetype = Request.QueryString("type_" & i)
desc = Request.QueryString("description_" & i)
next
categories is a number
I tried doing this (as I would do in Flash):
Code:
"name" & i = filetype
inside the loop but it didn't work
also tried
Code:
set ("name" &i) = filetype
, a big NO!
What oh what do I need to use to make it work????