I am displaying questions one by one on a web page. When the user gets the question wrong I want to store the questions id in an array. I'm having a problem keeping the id stored. The array seems to know there is supposed to be an element there, but I only ever get the last id. Here is my code.
if not(blnGotRight) then
redim preserve ids(session("NoInArray") 'put how many are in array
ids(ubound(ids)) = (request("ID")
end if
for each id in ids
Response.Write "*" & id & "*, "
next
Here is the answer I get:
**, **, **, *63*,
Can anyone help me please?
Thanks!
if not(blnGotRight) then
redim preserve ids(session("NoInArray") 'put how many are in array
ids(ubound(ids)) = (request("ID")
end if
for each id in ids
Response.Write "*" & id & "*, "
next
Here is the answer I get:
**, **, **, *63*,
Can anyone help me please?
Thanks!