As others have said, drink lots! If you start feeling really hot and a bit woozy, STOP, and rest. Don't try to climb the next hill. I tried that once, and spent the next half hour on the side of the road trying not to die. Not fun, don't risk it. You were smart to turn back.