Commit 07c3aeca authored by Sam Moore's avatar Sam Moore

Trying to make a cgi script...

parent 320c0cf9
../../qchess/qchess.py
\ No newline at end of file
#!/usr/bin/python
import sys
import os
import cgi
if __name__ == "__main__":
form = cgi.FieldStorage()
x = int(form.getvalue("x"))
y = int(form.getvalue("y"))
print "Content-type:text/html\r\n\r\n"
print "<html>\n<head>\n<title>Webbified QChess</title>\n</head>\n<body>"
print "<p> x = %d\ty = %d <\p>" % (x, y)
print "</body>\n</html>"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment