If a person who is infected doesn't wash their hands after using the bathroom, they can spread the bacteria that cause typhoid fever. You may get typhoid fever if you eat food handled by someone with typhoid fever.