Trying to make a cgi script...
[progcomp2013.git] / web / web_qchess / web_qchess.py
1 #!/usr/bin/python
2
3 import sys
4 import os
5 import cgi
6
7
8 if __name__ == "__main__":
9         form = cgi.FieldStorage()
10         x = int(form.getvalue("x"))
11         y = int(form.getvalue("y"))
12         
13         print "Content-type:text/html\r\n\r\n"
14         print "<html>\n<head>\n<title>Webbified QChess</title>\n</head>\n<body>"
15         print "<p> x = %d\ty = %d <\p>" % (x, y)
16         print "</body>\n</html>"

UCC git Repository :: git.ucc.asn.au