Did I just pee myself?

So I've been feeling as if I'm peeing on myself. Just a tinkle. But when I look at my underwear. The top-middle has this yellowish stuff drying on them. Like what could it be??