Team:Wageningen UR/Testpage

From 2011.igem.org

(Difference between revisions)
Line 33: Line 33:
   <p>form
   <p>form
-
   <form method="post" action="index.cgi">
+
   <form method="post" action="cloning_tool.py">
     <p>message: <input type="text" name="message"/></p>
     <p>message: <input type="text" name="message"/></p>
   </form>
   </form>

Revision as of 11:34, 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)