Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <link rel="stylesheet" type="text/css" href="Style.css">
- <body>
- <center>
- <h1 style="font-size:70px;">FitnessHub<h1>
- <p>Enter Username & Password to get started</P>
- <form action="Welcome.php" method="post">
- <table>
- <tr>
- <td><input type="text" name="username" placeholder="Username" style="width:400px;height:30px;"></td>
- </tr>
- <tr>
- <td><input type="password" name="password" placeholder="Password" style="width:400px;height:30px;"></td>
- </tr>
- </table>
- <input type="submit" value="Login" style="width:100px;height:30px;">
- <br>
- </form>
- <img src="fitnesshub.png" alt="logo" style="width:400px;height=300px;">
- </center>
- </body>
- </html>
- <html>
- <link rel="stylesheet" type="text/css" href="Style.css">
- <body>
- <h1> Hello <?php echo $_REQUEST[username] ?> </h1>
- <p style="Font-Size:15px;">FitnessCenter can be used to book customers into multiple services<br>
- Use the buttons to start using the database
- </p>
- <?php
- $db = new mysqli("127.0.0.1", "root", "root", "fitnessbooking");
- $query= $db->query("select Username from users where Username = '$_POST[username]' and Pass = '$_POST[password]'");
- if ($query->num_rows ==1){
- echo "";
- }
- else {
- header("Location: http://localhost/pages/login.php");
- exit;
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement