Which is correct?

WHOM did you vote for in the 2004 election?
OR
WHO did you vote for in the 2004 election?

Both are correct, but using "whom" is more formal or grammatically correct. Using "who" is more commonly used in casual speech.