You can sometimes get away with it, I've done it in the past, gotten the miles on airline A and B because there was a problem and A put me on B. Keep your boarding cards, and tickets and whatever and submit according to each airline's program. You usually won't get them automaticailly.