putting form in a file