Listen to what Tod Daniels tells you, he knows his stuff.
One thing I will add is that you should inform your immigration office where you are staying within 24 hours of your arrival in thailand.
The first time I came over I did not do that, and when I went in for the extension I was questioned as to why I had not informed them. I got the extension ok but they said if I come again I must do it.
That will be the same as the TM30 that Tod mentioned I assume.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.