Go straight to the doctor. Headaches can be caused by a gazillion things, so they'll know where to refer you if you need it - it could be your eyes, but it isn't necessarily.
I used to get the most horrible headaches right in my forehead just about every time I looked up or stood up, and they...