A new scheme was proposed to realize the Fredkin quantum logic gate by using laser-controlled excitation of state in the three-mode laser and three-level system, in which the population depended on the laser phases and amplitudes. It can eliminate the decoherence induced by self radiation. The positions of two targets can be known by controlling the laser phase and amplitudes so that such positions would be turned over w...