Reason why this is probably an urban legend: frogs can spit up their stomach (they often digest food outside of their body and spit out the parts they can't digest; their digestive system is one way, so to speak).