source: tmcsimulator/trunk/webapps/cgi-bin/saveEvals.py @ 547

Revision 547, 467 bytes checked in by jdalbey, 6 years ago (diff)

Add SampleEvalPage?.html and cgi-bin/saveEvals. Demo programs for saving EInotebook evaluations.

  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2# Import modules for CGI handling
3import cgi, cgitb
4# Create instance of FieldStorage
5form = cgi.FieldStorage()
6# Get data from fields
7output = ""
8for j in range(1, 3):
9    output +=  form.getvalue('group'+str(j))
10    output += ", "
11
12print "Content-type:text/html\r\n\r\n"
13print "<html>"
14print "<head>"
15print "<title>Response CGI Program</title>"
16print "</head>"
17print "<body>"
18print "<h2>We read %s</h2>" % (output)
19print "</body>"
20print "</html>"
Note: See TracBrowser for help on using the repository browser.