Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import cgi
- form = cgi.FieldStorage() # parse form data
- print "Content-type: text/html"
- html = """
- <html>
- <head>
- <title> test of io </title>
- <h1>Grats</h1>
- <p> It appears I must work on my coding somemore... </p>
- """
- html2 = """
- <!doctype html>
- <html>
- <head>
- <title> test of io </title>
- </head>
- <body>
- <h1> YOU FAIL!!!</h1>
- <p> I guess my code is more 1337 than you.</p>
- </body>
- </html>
- """
- if form['pass'].value == "logout":
- print html
- else:
- print html2
Add Comment
Please, Sign In to add comment