Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <link rel="stylesheet" type="text/css" href="ournewstyle.css" />
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript" src="js/custom.js"></script>
- </head>
- <?php
- session_start();
- if ($_GET['login']) {
- // Only load the code below if the GET
- // variable 'login' is set. You will
- // set this when you submit the form
- if (in_array($_POST['entryphrase'], array('enter', 'goin', 'entrezvous', 'opensesame'))) {
- // Load code below if both username
- // and password submitted are correct
- $_SESSION['loggedin'] = 1;
- // Set session variable
- header("Location: protected.php");
- exit;
- // Redirect to a protected page
- } else echo " ";
- // Otherwise, echo the error message
- }
- ?>
- <form action="?login=1" method="post" id="ournewform">
- <input type="text" id="ournewlogin" name="entryphrase" class="fontface" />
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement