mixing results of checkboxes
I have 100 checkboxes on page1.htm... the user selects any number of them and the results are transfered by cookie to page2.asp the results are in the format {formresult="1,4,65,98"}
I can remove the commas and assign each number to a array'd value...
{val= new Array("one","two","three","four","five",...(etc... )}
where as my output is:
val[0]="one"
val[1]="four"
val[2]="sixty-five"
val[3]="ninety-eight"
now:
I would like to be able to mix the values of the array so that if 1 and 4 are selected then item A is displayed
if 65 and 98 are selected then item b is displayed etc...
without having to write a billion if && then statements for each possible condition.
TIA
:)
__________________
In a world of give and take, take all you can and you die with nothing. Give all you can and you die with honor.
|