Problem.
I have this html on my client:
<A>1. How Long does it take the earth to orbit the sun?</A><BR>
<INPUT type="radio" name="radiobutton1" value="365">A) 365 days<BR>
<INPUT type="radio" name="radiobutton1" value="364">B) 364 days Mth<BR>
<INPUT type="radio" name="radiobutton1" value="300">C) 300 days<BR>
<INPUT type="radio" name="radiobutton1" value="500">D) 500 days<BR>
<BR>
And I have this ASP on my server.
Dim radioB1, radioB2, radioB3, radioB4, radioB5
Dim questCount
questCount = 0
radioB1 = request.form("radiobutton1")
if radioB1 = "365" then
questCount = questCount + 1
end if
'Write out the result
Response.Write("<b>You answered " & questCount & " Questions Correct </b>" & "<br>")
the problem is thatmy variable fo rmy radio button 'questCount' is always 0.
How can I get the value of the radiobutton that was clicked?
thanks
manvee1
I have this html on my client:
<A>1. How Long does it take the earth to orbit the sun?</A><BR>
<INPUT type="radio" name="radiobutton1" value="365">A) 365 days<BR>
<INPUT type="radio" name="radiobutton1" value="364">B) 364 days Mth<BR>
<INPUT type="radio" name="radiobutton1" value="300">C) 300 days<BR>
<INPUT type="radio" name="radiobutton1" value="500">D) 500 days<BR>
<BR>
And I have this ASP on my server.
Dim radioB1, radioB2, radioB3, radioB4, radioB5
Dim questCount
questCount = 0
radioB1 = request.form("radiobutton1")
if radioB1 = "365" then
questCount = questCount + 1
end if
'Write out the result
Response.Write("<b>You answered " & questCount & " Questions Correct </b>" & "<br>")
the problem is thatmy variable fo rmy radio button 'questCount' is always 0.
How can I get the value of the radiobutton that was clicked?
thanks
manvee1