Ahem. If one snifs then the snot enters the throat which then enters the stomach. Hence the throwing up of snot.
For those of a delicate disposition read no further.
If you do a real big snif then you end up with snot in your mouth. Which you then swallow, which ends up in your stomach. Coughing can then cause you to throw up.