Things to do before: Make sure you locate the source of the water. In my case it was water under the carpet. However your issue maybe bigger than this.
-Heater (to ensure all cracks are dried)
- 4' x 4' x 1/4" plywood - $12
- 4' x 6' Carpet - $12
(All from Lowe's)