| Revision 584,
566 bytes
checked in by jdalbey, 6 years ago
(diff) |
|
import files to branch realtime VDS
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/usr/bin/python |
|---|
| 2 | # Import modules for CGI handling |
|---|
| 3 | import cgi, cgitb |
|---|
| 4 | # Create instance of FieldStorage |
|---|
| 5 | form = cgi.FieldStorage() |
|---|
| 6 | # Get data from fields |
|---|
| 7 | output = "" |
|---|
| 8 | for j in range(1, 3): |
|---|
| 9 | rating = form.getvalue('evaluationGroup'+str(j)) |
|---|
| 10 | if rating is not None: |
|---|
| 11 | output += form.getvalue('evaluationGroup'+str(j)) |
|---|
| 12 | output += ", " |
|---|
| 13 | |
|---|
| 14 | print "Content-type:text/html\r\n\r\n" |
|---|
| 15 | print "<html>" |
|---|
| 16 | print "<head>" |
|---|
| 17 | print "<title>Response CGI Program</title>" |
|---|
| 18 | print "</head>" |
|---|
| 19 | print "<body>" |
|---|
| 20 | print "<h2>We read %s</h2>" % (output) |
|---|
| 21 | print "</body>" |
|---|
| 22 | print "</html>" |
|---|
Note: See
TracBrowser
for help on using the repository browser.