PHILADELPHIA (AP) -- Kevin Frandsen just wanted to get on base. He got more than he expected to save the Phillies from a crushing loss.
Frandsen hit a pinch-hit homer leading off the ninth to lift Philadelphia to an 8-7 victory over New York on Saturday that wiped out the Mets' comeback from a six-run deficit.
The Mets had scored two runs in the top of the ninth off closer Jonathon Papelbon (2-0).
"You've got one chance," Frandsen said. "I'm trying to get on base. I'm not a home-run hitter. Fortunately I got a pitch to hit. You get a pitch to hit, hopefully you do something with it and I did. It was awesome."
Ryan Howard homered twice and drove in four runs and Michael Young also homered for Philadelphia, which led 7-1 through six innings.
Jordany Valdespin homered off Papelbon with one out in the ninth to pull New York within 7-6. After David Wright reached on an error, Papelbon got Marlon Byrd to fly out for the second out.
With Wright running and shortstop Jimmy Rollins moving toward second base to cover, Daniel Murphy singled to left-center. Center fielder Ben Revere bobbled the ball and Wright scored all the way from first to tie the game at 7.
"Great jump and great baserunning," Mets manager Terry Collins said.
Papelbon started the week having converted all 13 of his save opportunities, but has blown three of his last four chances.
"It happens to all closers," Phillies manager Charlie Manuel said. "(Brad) Lidge (48 for 48 in 2008) is the only one I know who was perfect."
Frandsen gave Papelbon the win by launching the second pitch from Carlos Torres (0-1) into the left-field stands. It was Frandsen's first career pinch-hit homer and game-ending homer. Frandsen said he hit a game-winning homer off Torres during a summer-league game while both were in college.
"He wants to show people he can play," Manuel said.
Said Howard, "He's ready to go when his number is called. He's been that guy that wants to step up. It's no surprise."
Domonic Brown had a pair of doubles for Philadelphia and Jonathan Pettibone allowed one run in six innings before leaving with a back injury.
Valdespin drove in three runs and Omar Quintanilla had three hits and an RBI for the Mets.
"That is an absolutely great comeback," Collins said. "To come back in a game like that, that far, that big, I wouldn't have thought it."
Howard continued his domination of Dillon Gee, improving to 7 for 15 with six homers and 14 RBIs lifetime against the Mets right-hander.
"He definitely hits me," Gee said. "No matter what I throw, he hits it out of the park."
Howard, apparently, didn't want to jinx his performance against Gee.
"I feel all right," Howard said, when asked about facing Gee. "I'm not going to talk about my hitting."
The slugger's hitting has been under scrutiny for much of the season, but he has heated up of late and is batting .439 with 3 homers and 11 RBIs in his last 11 games.
"It's a long season," Howard said. "I think people get so caught up in what it is you're doing right now and you forget it's 162 games. It's kind of like it comes when it comes. Over the course of the season you're going to have ups and downs."
Gee also continued his struggles against the Phillies, allowing six runs (five earned) on eight hits in five innings. He is 2-3 with a 7.66 ERA in nine games (eight starts) in his career against Philadelphia. He entered 3-1 with a 1.53 ERA in his last four starts.
"I had nothing I could command," Gee said. "It was just a bad day. I was all over the place and they made me pay for it. . I just have to pick up the pieces and hopefully start another roll."
Howard's two-run single to right in the first gave Philadelphia a 2-0 lead. He led off the fourth with a solo homer to right and launched a two-out solo homer to deep right in the fifth. Young preceded Howard's second homer of the game with a solo shot of his own. Young also has success against Gee, improving to 8 for 11 with three homers against him.
Pettibone injured himself while batting early in the game. He drew boos when he didn't run out a weak grounder, but clearly there was something bothering him as he clutched his lower back on his way back to the dugout. Pettibone warmed up before the seventh, but exited without throwing a pitch in the inning. The Phillies announced later in the game that he was experiencing lower back tightness.