What do you do when you wet your pants in public?

It would really depend on the situation. The best thing would to be discrete. Don't draw attention to yourself. Leave and get some fresh clothes and clean up first chance you get.