X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=web%2Fweb_qchess%2Fweb_qchess.py;fp=web%2Fweb_qchess%2Fweb_qchess.py;h=c0513c196e2876855747a80ca9ab83be1a3f50e6;hp=0000000000000000000000000000000000000000;hb=07c3aeca6b38ae0d83aa7e7c6ea197f50d10ed7c;hpb=320c0cf96d25f1cb5398992118cae383a284245f;ds=sidebyside diff --git a/web/web_qchess/web_qchess.py b/web/web_qchess/web_qchess.py new file mode 100644 index 0000000..c0513c1 --- /dev/null +++ b/web/web_qchess/web_qchess.py @@ -0,0 +1,16 @@ +#!/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 "\n\nWebbified QChess\n\n" + print "

x = %d\ty = %d <\p>" % (x, y) + print "\n" \ No newline at end of file