Repository navigation
Expand file tree
/
Copy pathForm Validation.php
More file actions
71 lines (64 loc) · 2.52 KB
/
Copy pathForm Validation.php
File metadata and controls
71 lines (64 loc) · 2.52 KB
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
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Validation formulaire</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<style>
body {
font-family: 'Consolas', sans-serif;
background-color: #ddd;
}
.container {
max-width: 800px;
margin: 40px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container mb-4">
<form action="">
<div class="form-group">
<label for="name" class="form-label">Nom :</label>
<input type="text" name="name" id="name" class="form-control">
<span class="error"></span>
</div>
<div class="form-group">
<label for="email" class="form-label">Email :</label>
<input type="email" name="email" id="email" class="form-control">
<span class="error"></span>
</div>
<div class="form-group">
<label for="password" class="form-label">Mot de passe :</label>
<input type="password" name="password" id="password" class="form-control">
<span class="error"></span>
</div>
<div class="form-group">
<label for="confirmpassword" class="form-label">Confirmer le mot de passe :</label>
<input type="password" name="confirmpassword" id="confirmpassword" class="form-control">
<span class="error"></span>
</div>
<div class="form-group">
<label for="site" class="form-label">Site Web (facultatif) :</label>
<input type="text" name="site" id="site" class="form-control">
<span class="error"></span>
</div>
<div class="form-group">
<label for="gender" class="form-label">Gender :</label>
<input type="radio" name="male" id="male" value="male">Homme
<input type="radio" name="female" id="female" value="female">Femme
<span class="error"></span>
</div>
<button class="btn btn-primary">S'inscrire</button>
</form>
</div>
</body>
</html>