Advertisement
SebaV

Untitled

Nov 24th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1. <?php
  2. require('../master.php');
  3. require('../dbConfig.php');
  4.  
  5. // Create connection
  6. $conn = new mysqli($servername, $username, $password, $dbname);
  7. // Check connection
  8. if ($conn->connect_error) {
  9.     die("Connection failed: " . $conn->connect_error);
  10. }
  11.  
  12. ?>
  13. <!DOCTYPE html>
  14. <html>
  15. <head>
  16.     <title>Cursist toevoegen</title>
  17.     <?php
  18.         echo $head;
  19.     ?>
  20. </head>
  21. <body>
  22.     <?php
  23.     echo $header;
  24.     ?>
  25.         <div class="row">
  26.             <h2 class="col-sm-offset-2 col-sm-10">Cursist toevoegen</h2>
  27.         </div>
  28.         <form class="form-horizontal" role="form" method="post" action="cursisten_2.php">
  29.         <div class="form-group">
  30.             <label class="control-label col-sm-2" for="firstName">username:</label>
  31.             <div class="col-sm-10">
  32.                 <input class="form-control" required="required" type="text" name="firstName" id="firstName" placeholder="Fill in your username" />
  33.             </div>
  34.         </div>
  35.         <div class="form-group">
  36.             <label class="control-label col-sm-2" for="password">Password:</label>
  37.             <div class="col-sm-10">
  38.                 <input class="form-control" required="required" type="password" name="lastName" id="lastName" placeholder="Vul uw naam in" />
  39.             </div>
  40.         </div>
  41.        
  42.             <div class="form-group">
  43.                 <div class="col-sm-offset-2 col-sm-10">
  44.                     <button class="form-control btn-default" type="submit">Bevestigen</button>
  45.                     <button class="form-control btn-default" type="reset">Resetten</button>
  46.                     <button class="form-control btn-default" type="button">Annuleren</button>
  47.                 </div>
  48.             </div>
  49.         </form>
  50.     <?php
  51.     $conn->close();
  52.     echo $footer;
  53.     ?>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement