Passowrd
Can anyone help me?
here's the code:
i
mport cgi, cgitb
cgitb.enable()
form = cgi.FieldStorage()
passwd = form.getvalue("passwd")
print """Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Password</title>
</head>
<body>
"""
print "<h1>Password: Confidential</h1>"
print
passwd = form.getvalue("passwd")
if passwd=="junaidnoori":
print "<p>Password is correct."
print "Welcome to the secret web-site.</p>"
else:
print "<p>Sorry, incorrect password.</p>"
print "</body></html>"


Sign In
Create Account

Back to top









