ARLINGTON, Texas -- Nick Foles threw two touchdown passes, NFL rushing champion LeSean McCoy had 120 yards and a receiving score and the Philadelphia Eagles beat the Dallas Cowboys 24-22 in a win-or-go-home game for the NFC East title Sunday night.

The Cowboys (8-8), with Kyle Orton filling in two days after Tony Romo had back surgery, lost to a division rival with a playoff berth on the line for the third straight year.

The Eagles (10-6) will host New Orleans in a wild-card game Saturday night.

Dallas trailed 24-16 when Orton threw a 32-yard touchdown pass to Dez Bryant. Orton went back to Bryant for the 2-point conversion, but the ball fell incomplete.

The Cowboys got another chance with a stop from their beleaguered defense, but Orton's pass was intercepted by Brandon Boykin on the first play to seal the win.

McCoy finished with 1,596 yards.

Copyright by STATS LLC and The Associated Press

More From 97.3 ESPN