my hp not working without the battery but its plugged in

If it won't work with the battery removed, but connected to the charger, then you are probably going to have to replace the battery to get it to work.
 
MERGED QUESTION
Question from paliminos : "my hp will not work when it is plugged in without the battery being removed"



 


 
I assumed it would work without the battery if it was connected. My charging port maybe not connecting.my laptop should work with or without the battery.
 


So which pin or terminal is it that tells the computer that there is a battery present allowing it to turn on ? You should be able to connect that pin to the ground pin tricking the laptop into thinking its there should you not ?