Samsung Galaxy S2 (i9100) Charging port problem?

view full story

http://androidforums.com – My phone was perfectly fine a few weeks ago and I woke up and it kept going on and off charge. I thought nothing off the phone being the problem, so I bought a charger. It kept on doing it so now it's the phone. Is there anything I can do to fix it or where I can fix it? My contract is up now but I am giving it to a family member and don't want it to play up for them. - Thanks. (General)