Advertisement
murtado

Untitled

Apr 28th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/Python27/python
  2. import cgi,cgitb
  3.  
  4.  
  5. #create instance of filestorage
  6. form = cgi.FieldStorage()
  7. username = form.getvalue('username')
  8. password = form.getvalue('password')
  9.  
  10. print "Content-type: text/html"
  11. print
  12. print "<html>"
  13. print "<head><title>Demo Penanganan Post</title></head>"
  14. print "<body>"
  15.  
  16. if (username=='root' and password=='rootpasswd'):
  17. print "ALKHAMDULILLAH WAREG"
  18. else:
  19. print ('password error')
  20. print "</body>"
  21. print "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement