Quote: "Travelers, under visa exemption scheme, arriving via an international airport will be given a 30 day visa exempt stamp, however people using OUT/IN method to extend their stay might be questioned after 6 visa exempt entries. There is no specific period given and there is no rule on how many visa exempt will be issued for one person. An old rule “90 days in a 180 days period” has been cancelled many years ago. As of 31st December 2016 Thailand limit visa exempt entries at land border to TWO per calendar year".
You need a copy of your passport (ident site and entry stamp with TM 6 card) a picture and 1900BHT. Go to immigration and fill out the TM7 form. That's all