Drop down poll
I need to make a drop down poll. I need to calculate the number of times each option is selected. I can only see the value of the item selected and not of the item previously selected.
<FORM METHOD="POST" ACTION="ProcessVote.asp">
<SELECT NAME="topic">
<OPTION VALUE="INIT">Select your favorite topic</OPTION>
<OPTION VALUE="a">a</OPTION>
<OPTION VALUE="b">b</OPTION>
<OPTION VALUE="c">c</OPTION>
<OPTION VALUE="d">d</OPTION>
</SELECT>
<INPUT TYPE="Submit" VALUE="Vote">
</FORM>
------------------------
'only something like this so far
if Request.Form("topic") <> "INIT" then
Application(Request.Form("topic")) = Application(Request.Form("topic")) + 1
else
Response.Write "You did not make any selection."
end if
|