Hadi1989

Untitled

Dec 26th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.73 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <?php session_start()?>
  3. <html lang="en">
  4.     <head>
  5.         <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1"/>
  6.         <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
  7.     </head>
  8. <body>
  9.     <nav class="navbar navbar-default">
  10.         <div class="container-fluid">
  11.        
  12.         </div>
  13.     </nav>
  14.     <div class="col-md-3"></div>
  15.     <div class="col-md-6 well">
  16.         <h3 class="text-primary">PHP LOGIN REGISTER PDO</h3>
  17.         <hr style="border-top:1px dotted #ccc;"/>
  18.         <a href="login.php">Already a member? Log in here...</a>
  19.         <br style="clear:both;"/><br />
  20.         <div class="col-md-3"></div>
  21.         <div class="col-md-6">
  22.             <form method="POST" action="save_member.php">  
  23.                 <div class="alert alert-info">Registration</div>
  24.                 <div class="form-group">
  25.                     <label>Username</label>
  26.                     <input type="text" name="username" class="form-control" required="required"/>
  27.                 </div>
  28.                 <div class="form-group">
  29.                     <label>Password</label>
  30.                     <input type="password" name="password" class="form-control" required="required"/>
  31.                 </div>
  32.                 <div class="form-group">
  33.                     <label>Firstname</label>
  34.                     <input type="text" name="firstname" class="form-control" required="required"/>
  35.                 </div>
  36.                 <div class="form-group">
  37.                     <label>Lastname</label>
  38.                     <input type="text" name="lastname" class="form-control" required="required"/>
  39.                 </div>
  40.                 <?php
  41.                     if(ISSET($_SESSION['success'])){
  42.                 ?>
  43.                 <div class="alert alert-success"><?php echo $_SESSION['success']?></div>
  44.                 <?php
  45.                     session_unset($_SESSION['success']);
  46.                     }
  47.                 ?>
  48.                 <button class="btn btn-primary btn-block" name="register"><span class="glyphicon glyphicon-save"></span> Register</button>
  49.             </form>
  50.         </div>
  51.     </div>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment