Vomiting when going to the toilet may be caused by acute gastroenteritis, appendicitis, pelvic inflammatory disease and other diseases. 1. Acute gastroenteritis: these people can have nausea, vomiting, diarrhea, abdominal distension, abdominal pain and other phenomena, can be treated with levofloxacin, need to be under the advice of a doctor to use drugs. 2. Appendicitis: people with appendicitis may experience pain around the umbilicus and abdomen, which gradually shifts to the right lower abdomen, and such people may also experience nausea and vomiting when going to the toilet. 3. Pelvic inflammatory disease: this kind of people will stimulate the rectum due to the inflammation of the infection to go to the toilet, and have nausea and vomiting symptoms. There are other reasons, such as hepatitis, pregnancy, etc. It is recommended to go to the hospital in time, perform abdominal CT, abdominal ultrasound and other tests to further clarify the diagnosis and treatment.