@frosted – You are so right. I went through a period in my 20s where I often had frequent urinary tract infections. I have learned some preventative measures that have helped me and the only two UTIs I have had since then have been because I wasn’t practicing prevention.
These are a few preventative measures that I have taken. Always drink plenty of water it helps to flush out the bacteria. Urinate frequently, every three or four hours minimum.
Do not drink things that irritate the urinary tract like caffeine and carbonated beverages. Avoid feminine hygiene products such as sprays, deodorants, powders and douches; they are irritating, too.
Keep refined foods to a minimum and drink unsweetened cranberry juice. Although cranberry juice will not cure a UTI it can help to prevent it.
Ask your doctor and/or research more about it on the Internet. I found a good article on the Dartmouth College Health Service site.