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