A topical anorectal or genital composition includes at least one film forming ingredient; at least one surfactant; at least one non-polar volatile siloxane solvent; at least 15% (w/w) water; and a therapeutically effective concentration of at least one pharmaceutical agent, wherein the composition is sufficiently designed to dry within 60 seconds after application to the anorectal or genital surface 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.