You can't and you don't need to. You get a visa on arrival when you arrive in each country. First in Thailand, then when you arrive in Cambodia and then when you return to Thailand (I assume again but I don't know off the top of my head if there are multiple entry visa in Thailand although I don't think so). its all very easy.
-:- Message from TripAdvisor staff -:-
This topic has been closed to new posts due to inactivity. We hope you'll join the conversation by posting to an open topic or starting a new one.
To review the TripAdvisor Forums Posting Guidelines, please follow this link: http://www.tripadvisor.com/pages/forums_posting_guidelines.html
We remove posts that do not follow our posting guidelines, and we reserve the right to remove any post for any reason.