Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($user == $email && $pass = $password) {
- session_start();
- $_SESSION['mysesi'] = $name;
- $_SESSION['user'] = $user;
- echo "<script>window.location.assign('index.php')</script>";
- } elseif (empty($email) || empty($password)) {
- ?>
- <div class="alert alert-danger alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <strong>Warning!</strong> Please fill out all fields.
- </div>
- <?php
- } else {
- ?>
- <div class="alert alert-danger alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <strong>Warning!</strong> Incorrect combination of Email Address and Password.
- </div>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement