I got my period while leaving the bath, I had to go outside

I was in a hurry to leave the house in the morning. I came out of the bathroom, got dressed, but then I realized I had just started my period. I needed to leave, but I didn’t even check if I had a pad with me. Has this happened to you? How do you find a solution right away?