asp classic : checking values in an array

mzWinneryj

New Member
i'm making a simple questionnaire for a client in Classic ASP.the idea is that there will be 10 question. the user registers and gets sent to the first question. when this is answered they move on to the 2nd question etc.questions can be skipped and returned to at a later date, and each question can only be answered once.i have a comma separated list in the database of each question a user has answered.so, a user logs in and an array is created with the list of answered questions ..what would be the best way to loop through this list and go to the first unanswered question?an example of the array of answered questions would look something like this "1,4,6"so this user would have answered questions number 1, 4 and 6 .when a user logs in i'd like to direct them to the first unanswered question, in this case 2.once the second question is answered the user would be directed to the next unanswered question.any suggestions please?
 
Back
Top