password code

1Tsme1941

Member
Would someone advise me as to why this no longer works. It is a program to confirm password. thanks
code follows:
---------------------------------------------------------------

<?php
##########################################################################
$password = "password"; // Modify Password to suit for access, Max 10 Char.
##########################################################################
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Simple Password Protect - PHP PasswordProtect</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
-->
</style>

</head><body><center>

<?php
// If password is valid let the user get access
if (isset($_POST["password"]) && ($_POST["password"]=="$password")) {
<font size="+2><a href="expiration.php"></font> <img src="resume.png"></a><br>
}
else
{
print "<p align=\"center\"><font color=\"red\"><b>Incorrect Password</b><br>Please enter the correct password</font></p>";
}
print "<form method=\"post\"><p align=\"center\">
Enter your password for access to system<br>";
print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\">
<input value=\"Login\" type=\"submit\"></p></form>";
}
?>
==================================================
result follows:
----------------------------------------------
} else { print "

Incorrect Password
Please enter the correct password
"; } print "

Enter your password for access to system
"; print "
"; } ?>
 
Top