My iPhone doesn't charge when it turns on?

My iPhone went dead so I put it on charge I put the wire in and the little icon thing came up showing that its charging but when the iPhone turns on it stops charging I've unplugged it and put it back in I've tried to turn the phone off and then try again but it still doesn't work can someone help me please thanks

Try plug the charger in and when the phone turns on, Hold the power button & Home button to turn it off, and then it should work. Once it's got enough power, turn it on with the charger out then plug the charger in.