Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("dbconnect.php");
- $email = $_POST["users_emai;"];
- $pass = $_POST["users_pass"];
- $passha = sha1($pass);
- $sql = "SELECT * FROM user WHERE username = '$email' AND password='$passha'";
- $result = $conn-> query($sql);
- if ($result->num_rows > 0) {
- echo"<script>alert('success');
- window.location.href='mainpage.html';</script>";
- }else{
- echo"<script>alert('Failed Login !!!);
- window.location.href='.../index.html';</script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement