Dr Daniel Lee reviews over the counter medications to take to help prevent constipation. These recommendations along with walking and drinking 1 gallon of water a day for the first 10 days after surgery will certainly help prevent the dreaded bloating, hemorrhoids, cramping that postoperative constipation can lead to.