IPhone turns on and off on charge?

My battery died last night and now when I put it on charge it turns on, the apple logo comes up, then the passcode entry comes up and right then it starts to shut off again. It's constantly doing this.

Added (1). Something else I also noticed is that once the apple logo comes and if I plug the charger plug out the phone will continue to start and follow the same process except it won't turn back off.

I've also tested with multiple chargers.

Take it to AT&T or whoever your carrier or whatever it's called is. You know Verizon?

  • My iPhone turns itself on and off randomly? My iPhone 3GS has just started turning its self off and on like 20minutes ago and it's got 57% of battery left, I don't know what's wrong? And I don't wanna go to the apple shop because I don't want my mum to have to pay for a new one because we have a tight budget. And if I tell her she will go mad!
  • My iPhone keeps turning on and off like it turns on and off. Can someone tell me? Okay tbms it turns on and off on and off and then sometimes it shows a red screen for a few seconds then off again and dies out. It's not the battery because I got that changed thinking that it was the cause and it wasn't. So is there anything someone can help me with? The repair guy tried restoring it through iTunes he said it didn't work either it just won't come on it doesn't go pass the Apple logo before shutting off and on again and dying out
  • IPhone turns off as soon as i take it off the charger? I have an iPhone 4 with iOs 6 and today it just turned off randomly and wouuld not turn back on. So i put it on the charger, and it turned on. But as soon as i took it off, it died again. It as at 65 percent and is not going up or don. I can't upgrade to iOs 7 because i don't have enough storage and i don't want to restart my phone. What do i do?!
  • Iphone turns off after i restart and battery is dumb? My iphones battery doesn't change and when i restart it updates then after 2-5 minutes it just turns off and keeps doing that and then it will randomly stop restarting and start working but the battery still remains the same its an iphone 4s jailbroken if i reinstall ios will it fix?