A topical anorectal composition includes trimethylsiloxysilicate; at least one surfactant selected from the group consisting of sodium lauryl sulfate, alkyl- and alkoxy-dimethicone copolyol, polysorbate and a combination thereof; a non-polar volatile siloxane solvent; at least 15% (w/w) water, and a pharmaceutical agent selected from the group consisting of pramoxine, phenylephrine, hydrocortisone, salicylic acid, nitroglycerine, sildenafil, or their salts and combinations thereof, wherein the composition is sufficiently designed to dry within 60 seconds after application to the anorectal mucosa to form a dried composition, and wherein the dried composition forms: a flexible film, wherein the flexible film closely follows irregularities of the body surface as well as movement of the body surface, and (ii) a durable film, wherein the durable film does not crack or flake off and remains intact for more than 12 hours giving release of the pharmaceutical agent for an extended period of time.