1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 04:51:06 -07:00
moth/puzzles/survey/1000000/submit.cgi
2009-10-07 13:29:00 -06:00

17 lines
394 B
Python
Executable file

#! /usr/bin/env python3
import cgi
f = cgi.FieldStorage()
if f.getfirst('submit'):
print('Content-type: text/plain')
print()
print('Thanks for filling in the survey.')
print()
print(dir(f))
print('The key is:')
print(' quux blorb frotz')
else:
print('Content-type: text/plain')
print()
print('You need to actually fill in the form to get the key.')