Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <html>
  2. <link rel="stylesheet" type="text/css" href="Style.css">
  3. <body>
  4. <center>
  5. <h1 style="font-size:70px;">FitnessHub<h1>
  6. <p>Enter Username & Password to get started</P>
  7.  
  8. <form action="Welcome.php" method="post">
  9.  
  10. <table>
  11. <tr>
  12. <td><input type="text" name="username" placeholder="Username" style="width:400px;height:30px;"></td>
  13. </tr>
  14. <tr>
  15. <td><input type="password" name="password" placeholder="Password" style="width:400px;height:30px;"></td>
  16. </tr>
  17. </table>
  18.  
  19. <input type="submit" value="Login" style="width:100px;height:30px;">
  20. <br>
  21.  
  22.  
  23.  
  24. </form>
  25. <img src="fitnesshub.png" alt="logo" style="width:400px;height=300px;">
  26.  
  27.  
  28.  
  29.  
  30.  
  31. </center>
  32. </body>
  33. </html>
  34.  
  35. <html>
  36. <link rel="stylesheet" type="text/css" href="Style.css">
  37. <body>
  38.  
  39.  
  40. <h1> Hello <?php echo $_REQUEST[username] ?> </h1>
  41.  
  42. <p style="Font-Size:15px;">FitnessCenter can be used to book customers into multiple services<br>
  43. Use the buttons to start using the database
  44. </p>
  45.  
  46. <?php
  47. $db = new mysqli("127.0.0.1", "root", "root", "fitnessbooking");
  48. $query= $db->query("select Username from users where Username = '$_POST[username]' and Pass = '$_POST[password]'");
  49.  
  50. if ($query->num_rows ==1){
  51. echo "";
  52. }
  53. else {
  54. header("Location: http://localhost/pages/login.php");
  55.  
  56. exit;
  57. }
  58. ?>
  59.  
  60.  
  61.  
  62.  
  63.  
  64. </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement