Check out the bottoms of their feet and make sure that they're not injured and that injury is causing the infection in the leg(s).
If the vet visits ($100, or so) are out of your budget, check out the feed store and see if they can reccomend an oral antibiotic that they may have in stock.
Good...