When cleaning any fabric, it is important to keep it as dry as possible. Even though you may think water will lift and remove a stain, it actually seeps into certain fabrics and makes a bigger, more noticeable stain! Try not to spill anything that contains acidic acids on your furniture because it will ruin the color.
However accidents do happen. Shaving cream makes an excellent upholstery cleaner in a pinch. It sticks to all the tricky parts, such as chair legs or backs. Just spray on a small amount, and work it into the fabric with your fingers or a soft brush. Sponge off the excess, and blot the area to encourage drying.