wanna lose weight but can't

how do i lose weight thought having the urge to eat unhealthy things? i can be on a healthy binge for about 3 days and completely blow it. i just want to keep it going. advice please?