I'm programming an opinion poll. This is my first object oriented php program, but that's irrelivant. The poll has two ways to display, in form mode where you vote on the answers to the question and the result mode where it displays the number of votes in a nice table. I have three functions in my poll class to do this, display_question() (the one that displays it as a form), display_results() (the one that displays the results), and display_poll() (this one displays the results if the cookie is set, otherwise displays the form). The poll has a name, say, foo. When you vote, is sees if the cookie called MicahPollCookie exists and has the value foo. If it doesn't, it increments the votes for the option chosen and does all the happy stuff. If it does, then it doesn't increment the votes and tells you you've already voted. I know my display_question() and display_results() functions work fine. My display_poll() function does the same thing as when you vote, checks for the cookie to exist and have the right value, and if it does shows the results, otherwise the form. This one isn't working. It always shows the form. I know the cookie's working because it doesn't let me vote again. I have pollclass.php, which has the poll class (with those 3 functions in it) and I have vote.php, which is what the action to the form is when you vote. Vote.php sets the cookie when you vote, and it checks for the cookie before it increments it, and it all works fine. The pollclass.php doesn't even seem to know that the cookie exists. Any enlightenment?