Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <!DOCTYPE html>
  5.  
  6. <html lang="en">
  7.  
  8. <head>
  9.  
  10. <meta charset="utf-8">
  11.  
  12. <title>E-Book Store</title>
  13.  
  14. <link rel="stylesheet" href="stylesheets/indexstylesheet.css" type="text/css" media="screen">
  15. <link rel="stylesheet" href="stylesheets/headerstylesheet.css" type="text/css" media="screen">
  16.  
  17. <script src=""></script>
  18.  
  19. </head>
  20.  
  21. <header
  22.  
  23. <div class="top_head">
  24. <div class="logo">
  25. <img src="images/logo.jpg" href="index.php" title="ebookstorelogo" alt="ebookstorelogo" />
  26. </div>
  27.  
  28. <nav>
  29.  
  30. <ul>
  31. <li class="selected"><a href="index.php">Home</a></li>
  32. <li><a href="ebooks.php">E-Books</a></li>
  33. <li><a href="register.php">Register</a></li>
  34. <li><a href="login.php">Log in</a></li>
  35. <li><a href="basket.php">Basket</a></li>
  36. </ul>
  37.  
  38. </nav>
  39.  
  40. </div>
  41.  
  42. </header>
  43.  
  44. <body>
  45.  
  46. <h1>Author Registation</h1>
  47. <p><H2>Date:<?php
  48. echo date('d/m/y');
  49. ?>
  50. </h2></p>
  51. <form action="registerprocess.php" method="get" >
  52. <table align ="center" width ="30%">
  53. <tr>
  54. <td>First Name:</td><td><input type="text" name="firstname"/></td>
  55. </tr>
  56. <tr>
  57. <td>Last Name:</td><td><input type="text" name="lastname"/></td>
  58. </tr>
  59. <tr>
  60. <td>User Name:</td><td><input type="text" name="username"/></td>
  61. </tr>
  62. <tr>
  63. <td>Password:</td><td><input type="text" name="password"/></td>
  64. </tr>
  65. <tr>
  66. <td>Email:</td><td><input type="text" name="email"/></td>
  67. </tr>
  68. <tr>
  69. <td algin ="center"><input type="submit"></td>
  70. </tr>
  71. </table>
  72. </form>
  73. <a href=login.php><h3>Already Registered....</h3></a>
  74.  
  75. <?php
  76.  
  77. require 'bookstoredata/connect_DB.php';
  78.  
  79. if (mysqli_ping($connect)) {
  80. echo '<p>MySQL Server' . mysqli_get_server_info($connect)
  81. . ' on ' . mysqli_get_host_info($connect) . '</p>';
  82. }
  83.  
  84. ?>
  85.  
  86. </body>
  87.  
  88. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement