Obviously, if $F$ is a field, and $I$ is it's nonzero ideal, then it contains an invertible element of $F$(any nonzero element of $F$). Denote this element as $a$. Since $I$ is ideal, $aa^{-1} = 1 \in I$. Hence, $I = F$.
But I'm not sure how to prove that any commutative ring with identity without nonzero proper ideals is a field.