the cool part of the whole fainting thing is it is a corrective measure taken by your body to return the oxygen back to your brain.
dehydration lead to low blood pressure, then my getting up meant the blood did not make it to my brain. the lack of oxygen caused a faint, which caused a collapse, which then allowed oxygen back to the brain (since I was on the floor)