Bathroom pains?

Okay so whenever my stomach is upset and I go poo, I get this awful pain that radiates up my back and down my legs into my toes. Like a to the bone achey pain. It's weird but that's how I know if I'm done or not, it'll stop hurting when I'm done. 🙄
Does anyone else experience this?