Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>KingstoneSPRX-LOG IN</title>
- <link rel="stylesheet" type="text/css" href="Webbstyle.css">
- <link rel="stylesheet" type="text/css" href="Sidebarstyle.css">
- <link rel="stylesheet" type="text/css" href="login.css">
- <script src="Webbscripts.js"></script>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
- <link rel="shortcut icon" href="img/WebLogo.png" type="image/x-icon"/>
- </head>
- <body>
- <center>
- <div class="Signbox">
- <h1>Log in</h1>
- <form action="login.php" method="POST" class="login-container">
- <input type="text" name="userkey" placeholder=" Product key" required="true" max="4"><br><br>
- <button type="submit" name="submit" class="Rigsbtn">Log in</button>
- </form>
- <div id="Logtext">
- <p>Don't have any product key?<a href="Singupform.php"> Get </a> here</p>
- </div>
- </div>
- </center>
- //Php scripten
- <?php
- session_start();
- include 'database.php';
- $uid = htmlspecialchars($_POST['username']);
- $email = htmlspecialchars($_POST['email']);
- $pwd = htmlspecialchars($_POST['password']);
- $pwd2 = md5($pwd);
- $hashedpwd = $pwd2;
- $sql = "INSERT INTO user(uid, pwd) VALUES ('$uid', '$pwd2')";
- $result = mysqli_query($conn, $sql);
- header("Location: index.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement