If you MUST take online courses, you should DEFINITELY take them under the auspices of a well-known and REGIONALLY (not nationally) accredited university. Many reputable state universities offer affordable online courses (and even degrees) these days. Please do research before you waste your money. Stay away from for-profit online schools. Stick with Distance Education programs from known state schools.
Here is a list of regional accreditation associations. If the program you are considering is not accredited by one of these bodies, you should look elsewhere.
Accredited Online SchoolOnline lead generation for colleges