The invention relates to novel spill resistant formulations comprising either a weak base or a weak acid as the pharmaceutical ingredient, a liquid base, a clay and a water soluble cellulose ether. The clay and cellulose ether allow for a broader pH range into which the pharmaceutically active agent may be dispersed or dissolved, and therefore allows for easier preparation and formulation of the pharmaceutical composition.