Team:Wageningen UR/Testpage

From 2011.igem.org

Revision as of 10:20, 27 June 2011 by Dorett (Talk | contribs)
  1 #!C:\Python27\python.exe -u
  2 #!/usr/bin/env python
  3 
  4 import cgi
  5 import cgitb; cgitb.enable()  # for troubleshooting
  6 
  7 print "Content-type: text/html"
  8 print
  9 
 10 print """
 11 
  12 
  13 Sample CGI Script
  14 
  15 
  16 
  17   

Sample CGI Script

18 """ 19 20 form = cgi.FieldStorage() 21 message = form.getvalue("message", "(no message)") 22 23 print """ 24 25

Previous message: %s

26 27

form 28 29

30

message:

31
32 33 34 35 36 """ % cgi.escape(message)