This suggest of fecal incontinence.Its most common causes are:Severe diarrhea,Stress,Damage to the nerves that control the anal muscle, reduction in the elasticity of the rectum, Inflammatory bowel disease.It is more common in elderly age as the there is reduction in the elasticity of the rectum.history of constipation is another common cause.It causes the muscles of the anus and intestines to stretch and weaken.Irritable bowel syndrome is the other common cause.
You need to anal manometry,proctography,anal electromyography tests for nerve damage and see your doctor for the clinical examination.If the anal muscles are weak, injections of ‘bulking agents' into the wall of the anus may help.Treatment varies from medications ,dietary changes,bowel training to the last option of surgery according to the cause.
Hope my answer had helped you.
Irritable bowel syndrome (IBS) is a problem that affects the large intestine.Your doctor may prescribe you medications such as Lomotil or loperamide (Imodium),anti depressants & others.Soluble fiber helps both diarrhea and constipation.Take psyllium supplements such as fiberall or perdiem to drink or to add it to other foods. Stress reduction (relaxation) training and relaxation therapies such as meditation also help greatly.Consult your doctor for the prescription medications.
Hope my answers had helped you.