How to get a csv file of the form input?