I like the approach taken in this script, as it's a throwback to how we used to write code in simpler languages. You have one event to handle all input, and a simple set of case statements. No bells, no whistles, easy to implement, easy to expand.
Of course, with 12 times the code, you could add all sorts of duplicate-vote checking, flood prevention, time to automatically close voting, ballot secrecy, etc etc. But this snippet is a good example of a smart computer science student.