Here's hint/tip on a homemade all-purpose carpet cleaning solution. Fill a spray bottle with white vinegar and water (half & half).
Even inexpensive shampoo works well to remove carpet stains. This is a page about using shampoo as a carpet stain remover.