Happened to me last week when I had a stomach bug.

Lemme tell you I learned something from that experience.  Every person should shit their pants in a controlled setting just ONCE in their life.  It builds character.  I'm a better person today because of it