ok so this stupid car is pissin me off

i got in it tonight to work on this problem and the car shifted into gear just like normal so i was like cool it works WRONG it only shifts out of park if the headlights are on i mean this is just assaninethis is my first honda and i really wanted it to be a good car but ive had problems with ever since i got it hell i drove a ford focus for 2 years kitted ou rims and sprayin happy gas and didnt have these problems whats up with my ride