"We've beaten two pretty good teams the last couple of days," Heatley said. "We are feeling good about ourselves."
Nick Foligno and Antoine Vermette also scored for the Senators, who still trail Florida by 14 points for the eighth and final Eastern Conference playoff spot. Ottawa has 29 games remaining, one more than the Panthers.
Are the Senators daring to think about the playoffs?
"It's definitely not out of the question," said captain Daniel Alfredsson, who picked up an assist and leads the Senators with 49 points. "It's possible. We won the first two games of this road trip. Who knows? We just can't look too far ahead."
"Our goaltender was the best player on the ice tonight," said Ottawa coach Cory Clouston, 3-1-1 since replacing the fired Craig Hartsburg.
"We've played very well on defense the last three or four games. The offense has struggled but tonight the goals came naturally."
It was Elliott's third straight impressive performance. He beat Buffalo 3-2 and 3-1 in his previous two starts, stopping the Sabres on 11 of 12 power plays Wednesday night in Buffalo. The Flyers failed on three power plays.
"Their goalie was great and I didn't have my best night," Flyers goalie Antero Niittymaki said. "I think that was the difference."
Heatley was credited with Ottawa's first goal after his shot hit the right post, then bounced off Niittymaki and Flyers winger Scott Hartnell into the net with 1:38 left in the first period. It was Heatley's team-leading 23rd goal.
Spezza made it 2-0 with his 21st goal on a power play at 8:40 of the second. He deflected Brendan Bell's shot with his skate while standing to the left of the net.
Foligno scored with 14 seconds left in the period, taking a pass from Ryan Shannon and ripping a backhander past Niittymaki.
"It was kind of a weird night for us," Lupul said. It seemed like we had a lot of chances. They got that goal right at the end of the second period. It was a killer for us."
Philadelphia cut it to 3-1 when Powe put in a rebound at 8:00 of the third period.
Heatley scored his second goal at 10:15 when his shot hit the crossbar and bounced straight down into the goal.
"I heard it but I didn't see it," he explained.
Richards made it 4-2 with a wrist shot 39 seconds later, and Vermette scored unassisted at 15:20 after stealing the puck from Jeff Carter.
It was the first time since November 8 that the Flyers dropped back-to-back home games in regulation. Philadelphia lost to Boston, 3-1, on Feb. 4.
Flyers C Richards and LW Scottie Upshall returned after missing three games because of the flu. ... Ottawa played the second of five consecutive road games that also will take the Senators to Minnesota, Nashville and Colorado. ... Ottawa D Alexandre Picard (upper body) missed his fifth straight game. ... Spezza (3 goals, 2 assists) and Bell (5 assists) extended their points streaks to four games.
Copyright by STATS LLC and The Associated Press
Arena: Wells Fargo Center Location: Philadelphia, Pennsylvania
Referees: Dean Morton, Rob Shick Linesmen: David Brisebois, Michel Cormier
Attendance: 19,679 (100.9% full)
Team Stat Comparison
Power Play Goals
Power Play Opportunities
Shots on Goal
Dany Heatley (23)
Assists: Daniel Alfredsson, Brian Lee
Jason Spezza (21)
(Power Play) Assists: Brendan Bell, Filip Kuba
Nick Foligno (9)
Assists: Ryan Shannon, Chris Phillips
Darroll Powe (3)
Assists: Scottie Upshall, Claude Giroux
Dany Heatley (24)
Assists: Jason Spezza, Antoine Vermette