Guest User

Untitled

a guest
May 21st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/usr/bin/python
  2. import cgi
  3. form = cgi.FieldStorage() # parse form data
  4. print "Content-type: text/html"
  5. html = """
  6. <html>
  7. <head>
  8. <title> test of io </title>
  9. <h1>Grats</h1>
  10. <p> It appears I must work on my coding somemore... </p>
  11. """
  12. html2 = """
  13. <!doctype html>
  14. <html>
  15. <head>
  16. <title> test of io </title>
  17. </head>
  18. <body>
  19. <h1> YOU FAIL!!!</h1>
  20. <p> I guess my code is more 1337 than you.</p>
  21. </body>
  22. </html>
  23. """
  24. if form['pass'].value == "logout":
  25. print html
  26.  
  27. else:
  28. print html2
Add Comment
Please, Sign In to add comment