Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (extension_loaded ('PDO')) {
- echo 'PDO OK';
- } else {
- echo 'PDO KO';
- }
- try {
- $db = new PDO('mysql:host=localhost; dbname=my_meetic;charset=utf8', 'root', '');
- $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(exception $e) {
- die('Erreur '.$e->getMessage());
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title>My Meetic</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="asset/css/style2.css">
- <link href="https://fonts.googleapis.com/css?family=Miss+Fajardose" rel="stylesheet">
- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- </head>
- <body>
- <h1 class="inscription">Inscrivez-vous</h1>
- <h3 class="slogan"><strong>Bienvenue sur My Meetic ! Trouvez votre âme soeur ici</strong></h3>
- <section id="cover">
- <div class="container-fluid center_form">
- <div class="row">
- <div class="col-sm-6 offset-sm-3 text-center section_form">
- <h1 class="mymeetic">My Meetic</h1>
- <form id="formulaire" class="form-inlin jusitfy-content-center formulaire" action="form.php" method="POST">
- <div class="form-group">
- <div class="col-xs-4">
- <label><strong>Prénom :</strong></label><br/>
- <br/>
- <input class="sm-3 input_modify" type="text" name="prenom"><br/>
- <br/>
- <label><strong>Nom :</strong></label><br/>
- <br/>
- <input class="input_modify" type="text" name="nom"><br/>
- <br/>
- <label><strong>Date de naissance :</strong></label>
- <br/>
- <input type="date" name="date"><br/>
- <br/>
- <label><strong>Sexe :</strong></label><br/>
- <br/>
- <input type="radio" name="sexe" value="H">Homme
- <input type="radio" name="sexe" value="F">Femme
- <input type="radio" name="sexe" value="A">Autres
- <br/>
- <br/>
- <label><strong>Ville :</strong></label><br/>
- <br/>
- <input class="input_modify" type="text" name="ville"><br/>
- <br/>
- <label><stroo" name="sexe" value="A">Autres
- <br/>
- <br/>
- <label><strong>Ville :</strong></label><br/>
- <br/>
- <input class="input_modify" type="text" id="ville" name="ville"><br/>
- <br/>
- <label><strong>Email :</strong></label> <br/>
- <br/>
- <input class="input_modify" type="text" id="email" name="email"><br/>
- <br/>
- <label><strong>Mot de passe :</strong></label><br/>
- <br/>
- <input class="input_modify" type="password" id="password" name="password"><br/>
- <br/>
- </div>
- </div>
- <!-- <input type="submit" value="Inscription"> -->
- <button type="submit" value="Inscription" class="btn btn-primary"><h3>Inscription</h3></button>
- </form>
- </div>
- </div>
- </div>
- </section>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement