Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. <?php
  2.  
  3. if (extension_loaded ('PDO')) {
  4. echo 'PDO OK';
  5. } else {
  6. echo 'PDO KO';
  7. }
  8.  
  9. try {
  10.  
  11. $db = new PDO('mysql:host=localhost; dbname=my_meetic;charset=utf8', 'root', '');
  12. $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  13. }
  14.  
  15. catch(exception $e) {
  16.  
  17. die('Erreur '.$e->getMessage());
  18.  
  19. }
  20. ?>
  21. <!DOCTYPE html>
  22. <html>
  23. <head>
  24. <meta charset="utf-8">
  25. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  26. <title>My Meetic</title>
  27. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  28. <link rel="stylesheet" type="text/css" href="asset/css/style2.css">
  29. <link href="https://fonts.googleapis.com/css?family=Miss+Fajardose" rel="stylesheet">
  30. <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
  31. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
  32.  
  33. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  34. </head>
  35.  
  36. <body>
  37. <h1 class="inscription">Inscrivez-vous</h1>
  38. <h3 class="slogan"><strong>Bienvenue sur My Meetic ! Trouvez votre âme soeur ici</strong></h3>
  39. <section id="cover">
  40. <div class="container-fluid center_form">
  41. <div class="row">
  42. <div class="col-sm-6 offset-sm-3 text-center section_form">
  43. <h1 class="mymeetic">My Meetic</h1>
  44. <form id="formulaire" class="form-inlin jusitfy-content-center formulaire" action="form.php" method="POST">
  45. <div class="form-group">
  46. <div class="col-xs-4">
  47. <label><strong>Prénom :</strong></label><br/>
  48. <br/>
  49. <input class="sm-3 input_modify" type="text" name="prenom"><br/>
  50. <br/>
  51. <label><strong>Nom :</strong></label><br/>
  52. <br/>
  53. <input class="input_modify" type="text" name="nom"><br/>
  54. <br/>
  55. <label><strong>Date de naissance :</strong></label>
  56. <br/>
  57. <input type="date" name="date"><br/>
  58. <br/>
  59. <label><strong>Sexe :</strong></label><br/>
  60. <br/>
  61. <input type="radio" name="sexe" value="H">Homme
  62. <input type="radio" name="sexe" value="F">Femme
  63. <input type="radio" name="sexe" value="A">Autres
  64. <br/>
  65. <br/>
  66. <label><strong>Ville :</strong></label><br/>
  67. <br/>
  68.  
  69. <input class="input_modify" type="text" name="ville"><br/>
  70. <br/>
  71. <label><stroo" name="sexe" value="A">Autres
  72. <br/>
  73. <br/>
  74. <label><strong>Ville :</strong></label><br/>
  75. <br/>
  76.  
  77. <input class="input_modify" type="text" id="ville" name="ville"><br/>
  78. <br/>
  79. <label><strong>Email :</strong></label> <br/>
  80. <br/>
  81. <input class="input_modify" type="text" id="email" name="email"><br/>
  82. <br/>
  83. <label><strong>Mot de passe :</strong></label><br/>
  84. <br/>
  85. <input class="input_modify" type="password" id="password" name="password"><br/>
  86. <br/>
  87. </div>
  88. </div>
  89. <!-- <input type="submit" value="Inscription"> -->
  90. <button type="submit" value="Inscription" class="btn btn-primary"><h3>Inscription</h3></button>
  91.  
  92. </form>
  93.  
  94. </div>
  95. </div>
  96. </div>
  97. </section>
  98.  
  99. </body>
  100. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement