Form takes user input and save desired query to text file