EN
We propose a protocol to realize quantum phase gates and generate entangled states between two atoms trapped in one cavity. In Lamb-Dick limits, it is not necessary to require coincidence detections, which will relax the conditions for the experimental realization. The protocol can be generalized to generate N-atom entangled states.