Coughing up blood and went light headed?

Not good. Needs to see doc. This may be as simple as coughing so hard that there is a little bleeding from the upper airway and the force produces a slight decrease in blood flow to the brain OR this could be something much more serious. Should get this checked.