I get a headache when I exercise?

Whenever I exercise at the gym I get headaches and get dizzy. I go to the gym about 3-4 times a week I've been going on and off for a few months now. Is this normal or am I doing something wrong? Does this happen to you?
I get a headache when I exercise?
Post Opinion