I finally figured this out. Apparently, I had too many input vars in my form. So it was causing an exception but for some reason it wasn't letting me know this so none of my form data was being extracted in order to write to the file so it just didn't write to the file. In new version of php, you need to increase the max_input_vars if your forms have a lot of variables. Older versions of php didn't have this limitation.