Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $password = "123456"; //set your own here
- ?>
- <html>
- <head>
- <title>Login!</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>
- <?php
- print "<h2 align=\"center\">Enter Your Password to Continue..</h2>";
- // If password is valid let the user get access
- if (isset($_POST["password"]) && ($_POST["password"]=="$password")) {
- ?>
- <!-- Your stuff goes Here -->
- Test test test
- <?php
- }
- else
- {
- // Wrong password or no password entered display this message
- if (isset($_POST['password']) || $password == "") {
- 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\">Please enter your password for access<br>";
- print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\"><input value=\"Login\" type=\"submit\"></p></form>";
- }
- ?>
- <BR>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement