Applying online is the best way to get your visa to Singapore and Malaysia. Documents for application are valid passports, place of stay, return journey ticket. You need to apply visa separately for both countries. Singapore has no visa on arrival option, regarding Malaysia there is visa on arrival still better to apply in advance. Obtain the visa a month prior to travel.