Write an article based on this summary:

Decide which phlox variety you want to grow. Choose a location in full sun for growing phlox. Look for soil that is moist but well-drained. Till the soil and add compost. Plant phlox outdoors after all signs of frost have passed.

Article:
All species of phlox produce flowers in a wide range of colors including white, pink, red, lavender and blue. Different varieties serve different needs in the garden. Do some research to decide which one is right for your growing zone. Purchase potted phlox plants sold locally at garden centers or farmer's markets for transplanting any time during the growing season. Your local garden center or nursery can advise you on which species grow best in your area.  Garden and meadow phlox are perfect for garden borders, since they grow quite wide and tall.  Low-growing phlox varieties are perfect to use as groundcover in shady areas, especially as many are mildew-resistant.  You can also buy bare-root plants from a mail order company, but bare root plants are best planted in the spring. Phlox are hardy, low maintenance flowers that can do well in most locations, though most varieties of phlox prefer full sun. However, some are tolerant of partial or filtered shade. Find a location that works for the variety you have chosen. Phlox grown in the shade often produce fewer flowers. They are also at increased risk for contracting a disease, so if you choose to plant phlox in the shade, look for a variety that is mildew-resistant. Phlox need plenty of moisture to do well, but they shouldn't be waterlogged. To make sure your soil drains well, take a look at it after a heavy rain. If you see standing water and puddles there, the soil doesn't have good drainage. If the area is wet, but not soaking, it should be fine for growing phlox. Phlox like rich soil, so it's necessary to work in some compost to ensure they grow healthy and strong. Till the soil to a depth of 12 inches (30 cm) and amend it with organic compost or peat moss. Dig holes that are 1 to 2 feet (0.30 to 0.61 m) apart to provide adequate ventilation. The holes should be twice as wide as the plants' root balls. Set the phlox plants into the holes and pat soil around their bases. Water the phlox after planting.