#!/usr/bin/python # Append a single evaluation rating to a log file # Import modules for CGI handling import cgi, cgitb, os # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields outMessage = form.getvalue('msg') # write message to file (append) text_file = open("dynamicdata/evalratings.csv", "a") text_file.write(outMessage) text_file.close()