Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/Python27/python
- import cgi,cgitb
- #create instance of filestorage
- form = cgi.FieldStorage()
- username = form.getvalue('username')
- password = form.getvalue('password')
- print "Content-type: text/html"
- print
- print "<html>"
- print "<head><title>Demo Penanganan Post</title></head>"
- print "<body>"
- if (username=='root' and password=='rootpasswd'):
- print "ALKHAMDULILLAH WAREG"
- else:
- print ('password error')
- print "</body>"
- print "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement