Typhoid and malaria are very different illnesses, caused by different disease organisms. Prognosis of both are well accepted.
Typhoid is caused by a Salmonella bacterium, whereas malaria is caused by single-celled animals, called protozoa, of the genus Plasmodium.
Typhoid is usually transmitted by eating food or drinking water which has been contaminated by sewage or handled by someone else with typhoid fever. It is usually treated with antibiotics; however, these antibiotics do not prevent re-infection with the disease. The best way to prevent re-infection is through washing food thoroughly in clean (boiled) water and by washing hands regularly, especially after going to the bathroom. There is also a vaccine available for Typhoid.
Malaria is caused by several species of the parasite plasmodium. Plasmodium falciparum causes the most severe form of the illness. Fever, chills, sweating are the common symptoms. Medication is the treatment option. Type of the drug and length of treatment may vary depending on the age, health condition, etc.