Well, the first thing is to get on your hands AND knees, and then try to stand up with your hands still on the ground, and if THAT works, then SLOWLY move into an upright position, 'cause if you move too fast you'll just go over backwards.
The other option is to simply crawl on hands and knees over to the nearest tree or fence post.