I'm trying to make a poll on a website, and handle the users choice with a switch statement. My code is listed below. It is supposed to check and make sure they haven't voted by seeing if the cookie has been stored, as well as storing their IP in a database after they vote. I've played around...