Don't listen to any of the naysayers and trolls on here. To get married legally is easy. Just go to the amphur with your gf/wife and 2 witnesses. You can sign all the documents at the amphur in Thai, and it only costs 80 thb. I was previously married to a Thai divorced and remarried a few months later (we had been separated for 8 yes).