I am so sorry you are having this problem!
What you are describing sounds like what is called folliculitis. This is an infection of the hair follicles. It can occur on any area of the body that has hair. Folliculitis can be caused by fungal infections or bacteria.
The fact that you have pain and swollen glands suggests that you may have a bacterial infection. Staph is one of the more common bacteria that would cause this.
You need to see your doctor. He or she, if confirming a bacterial infection, will start you on antibiotics to clear this up.
Other less common skin diseases can occur on the scalp (pemphigus
for example). Your doctor may need to refer you to a dermatologist if he does not feel it is infection.
In the meantime, try warm compresses to the area along with an antihistamine
to help with the itching and an anti-inflammatory for pain (if you can take these types of medications).
Here is more information for you about folliculitis if you would like to read: http://www.mayoclinic.com/health/folliculitis/DS00512/DSECTION=symptoms
Feel free to ask any follow up questions,
If you are satisfied with my help, please remember to click accept. Thank you!!
Edited by Dr. Abby on 2/2/2010 at 7:44 PM EST