Team:Wageningen UR/Testpage

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
-
  1 #!C:\Python27\python.exe -u
+
{{:Team:Wageningen_UR/Templates/Header}}
-
  2 #!/usr/bin/env python
+
== Testpage ==
-
  3
+
 
-
  4 import cgi
+
{{:Team:Wageningen_UR/Templates/NavigationLeft}}
-
  5 import cgitb; cgitb.enable()  # for troubleshooting
+
{{:Team:Wageningen_UR/Templates/Style | text= .
-
  6
+
 
-
  7 print "Content-type: text/html"
+
}}
-
  8 print
+
-
  9
+
-
  10 print """
+
-
  11 <html>
+
-
  12
+
-
  13 <head><title>Sample CGI Script</title></head>
+
-
  14
+
-
  15 <body>
+
-
  16
+
-
  17  <h3> Sample CGI Script </h3>
+
-
  18 """
+
-
  19
+
-
  20 form = cgi.FieldStorage()
+
-
  21 message = form.getvalue("message", "(no message)")
+
-
  22
+
-
  23 print """
+
-
  24
+
-
  25  <p>Previous message: %s</p>
+
-
  26
+
-
  27  <p>form
+
-
  28
+
-
  29  <form method="post" action="https://2011.igem.org/Team:Wageningen_UR">
+
-
  30    <p>message: <input type="text" name="message"/></p>
+
-
  31  </form>
+
-
  32
+
-
  33 </body>
+
-
  34
+
-
  35 </html>
+
-
  36 """ % cgi.escape(message)
+

Revision as of 11:24, 27 June 2011

Building a Synchronized Oscillatory System

Testpage

.