If you are able to stand up, you must do so as this is a pillar of prayer.
When bowing, you should bow standing up when able.
If not, you may sit down and lean a bit forward with your hands on your thigh or knee.
When prostrating, you should lean a bit more than bowing with your hands on your thighs or knees.