Leg cramps!!

I wake up in the middle night with leg cramps!! At first i started having it in one leg now I'm having it in both legs. I try to get up but its just to painful, and then once I'm up for the day I can still feel a little pain in my legs. Anyone have any tips about leg cramps.