I have a varying number of chechboxes which when checked and then submitted send their names & values to the next page which displays just the selected items not the whole list of possible options. My problem is that I prefer the options to be in a particular order but at the moment this order for some reason varies and seems to be due to the 10th-11th option being selected... which even with my limited knowledge of asp seems very wierd. Does anyone know of a reason or better still a cure ?
Code:
Dim formvalues(100,2)
Dim checkbox(100,2)
Dim x
Dim i
For Each x in Request.Form
i = i + 1
checkbox(i,0)=x ' This contains the option description
checkbox(i,1)=Request.Form(x) ' This contains the actual price of the option selected
response.write checkbox(i,0) & " " checkbox(i,1) & "<br>"
Next
{/code]