Team:Wageningen UR/Testpage

From 2011.igem.org

(Difference between revisions)
Line 4: Line 4:
{{:Team:Wageningen_UR/Templates/NavigationLeft}}
{{:Team:Wageningen_UR/Templates/NavigationLeft}}
{{:Team:Wageningen_UR/Templates/Style | text= .  
{{:Team:Wageningen_UR/Templates/Style | text= .  
 +
#!C:\Python27\python.exe -u
 +
#!/usr/bin/env python
 +
 +
import cgi
 +
import cgitb; cgitb.enable()  # for troubleshooting
 +
 +
print "Content-type: text/html"
 +
print
 +
 +
print """
 +
<html>
 +
 +
<head><title>Sample CGI Script</title></head>
 +
 +
<body>
 +
 +
  <h3> Sample CGI Script </h3>
 +
"""
 +
 +
form = cgi.FieldStorage()
 +
message = form.getvalue("message", "(no message)")
 +
 +
print """
 +
 +
  <p>Previous message: %s</p>
 +
 +
  <p>form
 +
 +
  <form method="post" action="index.cgi">
 +
    <p>message: <input type="text" name="message"/></p>
 +
  </form>
 +
 +
</body>
 +
 +
</html>
 +
""" % cgi.escape(message)
 +
}}
}}

Revision as of 11:26, 27 June 2011

Building a Synchronized Oscillatory System

Testpage

.

  1. !C:\Python27\python.exe -u
  2. !/usr/bin/env python

import cgi import cgitb; cgitb.enable() # for troubleshooting

print "Content-type: text/html" print

print """ Sample CGI Script

Sample CGI Script

""" form = cgi.FieldStorage() message = form.getvalue("message", "(no message)") print """

Previous message: %s

form

message:

""" % cgi.escape(message)