Dániel Gazdag scored on a penalty kick in the seventh minute of second-half stoppage time -- his league-record 11th PK goal of the season -- to rally Philadelphia to a 2-2 draw with Charlotte FC on Wednesday night, clinching a playoff spot for the Union.
Justin Meram found the net unassisted in the 55th minute to give Charlotte (7-9-12) a 1-0 lead. It was Meram's first goal of the season.
Karol Swiderski picked up his eighth goal this season, scoring unassisted in the 61st minute to make it 2-0.
Philadelphia (14-8-6) answered in the 70th minute when Quinn Sullivan used an assist from Julián Carranza to score for the first time this season.
Charlotte is now unbeaten in its last seven regular-season home matches but six have ended in draws.
The home team had won all three previous matchups.
Philadelphia returns home to host LAFC, which it lost to in last year's MLS Cup final, on Saturday. Charlotte travels to play FC Cincinnati the same day.