Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- // links the database connection to the Login.php file
- include 'dbh.php';
- // get values pass from form in index.php file
- $username = $_POST['user'];
- $password = $_POST['pass'];
- // query the database for login
- $sql = "INSERT INTO login (username , password) VALUES ('$username','$password')";
- $result = mysqli_query($conn, $sql);
- header("Location: index.php")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement