Prevent Mildew on Wet Carpet
Use bleach, if needed, to reduce any obvious stains remaining on the carpet and to make sure that all microbes have been killed.
Dry the carpet using a wet-and-dry vacuum that will pull water out of the carpet.