Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Check username and password are correct. If not, display error message.
- if (isset($_POST['username'], $_POST['password'])) {
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($username == "admin" && $password == "hnd2php") {
- $_SESSION['logOn'] = true;
- header('Location: adminpanel.php');
- } else {
- echo"<p> ur a dumbass </p>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement