-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinscription.php
executable file
·90 lines (79 loc) · 3.13 KB
/
inscription.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
ob_start();
$page_selected = 'inscription';
?>
<!DOCTYPE html>
<html>
<head>
<title>boutique - inscription</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes"/>
<link rel="shortcut icon" type="image/x-icon" href="https://i.ibb.co/0mKd0xT/icon-round-fanzine.png">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://unpkg.com/ionicons@5.1.2/dist/ionicons.js"></script>
</head>
<body>
<header>
<?php
include("includes/header.php") ?>
</header>
<main>
<?php
if (isset($_POST['submit'])) {
$user->register(
$_POST['firstname'],
$_POST['lastname'],
$_POST['gender'],
$_POST['phone'],
$_POST['email'],
$_POST['password'],
$_POST['conf_password']
);
}
if (isset($_POST['submit']) && isset($_POST['newsletter'])){
$user->newsletter($_POST['email']);
}
?>
<section id="container-register">
<form action="inscription.php" method="post">
<h3>CRÉER MON COMPTE</h3>
<section id="box-form">
<section id="box-gender">
<label>CIVILITÉ</label>
<input type="radio" name="gender" id="female" value="Femme">
<label for="gender">madame</label>
<input type="radio" name="gender" id="male" value="Homme">
<label for="gender">monsieur</label>
<input type="radio" name="gender" id="no_gender" value="Non genré">
<label for="gender">non genré</label>
</section>
<input type="text" name="firstname" placeholder="prénom*">
<input type="text" name="lastname" placeholder="nom*">
<input type="text" name="email" placeholder="email@email.com*">
<input type="tel" name="phone" placeholder="0123456789*">
<section id="box-password">
<label for="password">password</label>
<input type="password" name="password" placeholder="mot de passe*">
<label for="conf_password">confirmation password</label>
<input type="password" name="conf_password" placeholder="confirmer le mot de passe*">
</section>
</section>
<section id="box-newsletter">
<input type="checkbox" name="newsletter" value="newsletter">
<label for="newsletter">je souhaite recevoir votre actualité en avant-première. </label>
</section>
<button type="submit" name="submit">Enregistrer vos informations</button>
</form>
</section>
</main>
<footer>
<?php
include("includes/footer.php") ?>
</footer>
</body>
</html>
<?php
ob_end_flush();
?>