J
Jerry
I'm creating a survey for our organization that consists of about 38
statements that need to be rated on a scale of 1 to 5. The survey is for
a very specific audience and all of the questions are required. I'm
using radio buttons for the ratings and am wondering if I'm handeling
this the best way to preserve the user's answers if they missed a
question and have to go back to answer.
Here is what I have (this would be for each question):
<%
dim arr1(4)
select case session("1")
case "5" arr(4) = "SELECTED"
case "4" arr(3) = "SELECTED"
case "3" arr(2) = "SELECTED"
case "2" arr(1) = "SELECTED"
case "1" arr(0) = "SELECTED"
end select
%>
5<input type="radio" name="1" value="5"<%=arr(4)%>>
4<input type="radio" name="1" value="4"<%=arr(3)%>>
3<input type="radio" name="1" value="3"<%=arr(2)%>>
2<input type="radio" name="1" value="2"<%=arr(1)%>>
1<input type="radio" name="1" value="1"<%=arr(0)%>>
Is there a better, more efficient way to do this?
Thanks,
statements that need to be rated on a scale of 1 to 5. The survey is for
a very specific audience and all of the questions are required. I'm
using radio buttons for the ratings and am wondering if I'm handeling
this the best way to preserve the user's answers if they missed a
question and have to go back to answer.
Here is what I have (this would be for each question):
<%
dim arr1(4)
select case session("1")
case "5" arr(4) = "SELECTED"
case "4" arr(3) = "SELECTED"
case "3" arr(2) = "SELECTED"
case "2" arr(1) = "SELECTED"
case "1" arr(0) = "SELECTED"
end select
%>
5<input type="radio" name="1" value="5"<%=arr(4)%>>
4<input type="radio" name="1" value="4"<%=arr(3)%>>
3<input type="radio" name="1" value="3"<%=arr(2)%>>
2<input type="radio" name="1" value="2"<%=arr(1)%>>
1<input type="radio" name="1" value="1"<%=arr(0)%>>
Is there a better, more efficient way to do this?
Thanks,