Team:Wageningen UR/Testpage
From 2011.igem.org
(Difference between revisions)
Line 27: | Line 27: | ||
27 <p>form | 27 <p>form | ||
28 | 28 | ||
- | 29 <form method="post" action=" | + | 29 <form method="post" action="https://2011.igem.org/Team:Wageningen_UR"> |
30 <p>message: <input type="text" name="message"/></p> | 30 <p>message: <input type="text" name="message"/></p> | ||
31 </form> | 31 </form> |
Revision as of 10:20, 27 June 2011
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 1332 33 34 35 36 """ % cgi.escape(message)Sample CGI Script 14 15 16 17Sample CGI Script
18 """ 19 20 form = cgi.FieldStorage() 21 message = form.getvalue("message", "(no message)") 22 23 print """ 24 25Previous message: %s
26 27form 28 29