Hand cramps advice

Times during the day but mostly when I wake I start to get a burning feeling in my feet and legs and then it comes up to my hand and it starts to cramp and my hand and fingers cramp in ward to my body. It leaves my whole arm painful for a few hours or so. Any advice on this