How many of us are guilty of this?
I actually call this as the "cycle of gambling" where regardless of the result on your gambling, a person would most likely gamble again to check his luck for the day.
In order to combat this kind of cycle, there must be some sort of "stopper" where you decide not to gamble. For example, if you bring enough cash for today, then you are forced to stopped gambling after you exhausted all these resources. Of course, this may not be applicable to online gambling as your funds are always at your disposal, but practicing self-discipline can go a long way in this field.
I also have experienced this cycle when I used to gamble back in the days. I used to tell myself that I will stop, but I kept on hanging into this false hope where I may win if betted again. Of course, the result is always obvious- I lost way more than I profited.