Weird symptom?

The last few days I've been really phlegmy and it feels like it's stuck in my throat which makes me cough. Coughing in turn makes me gag and dry heave. I've been blowing my nose and drinking water like crazy so I'm at a loss with how to deal with this. Sorry it's gross.... Lol. Anyone else having this problem?