-
Notifications
You must be signed in to change notification settings - Fork 0
/
connexion.php
75 lines (66 loc) · 2.47 KB
/
connexion.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
<?php
require('config.php');
if (isset($_POST['submit'])) {
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$adress = $_POST['adress'];
$ville = $_POST['ville'];
$telephone = $_POST['telephone'];
$email = $_POST['login'];
$pass = $_POST['password'];
$query = "INSERT INTO clients (nom, prenom, ,tel, adresse,ville, pass,email) VALUES ('$nom', '$prenom', '$telephone','$adress', '$ville' , '$pass', '$email')";
if (mysqli_query($conn, $query)) {
echo "New book added successfully";
} else {
echo "Error: " . $query . "<br>" . mysqli_error($conn);
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="connexion.php" method="post">
<!-- <div> -->
<p id="hh">connexion :</p>
<!-- nom -->
<span>* nom :</span> <input type="text" id="nom" name="nom"><span>*</span><br>
<!-- prenom -->
<span>* prenom :</span><input type="text" id="prenom" name="prenom"><span></span><br>
<span>* Adrees :</span><input type="text" id="prenom" name="adress"><span></span><br>
<span>* telephone :</span><input type="number" id="prenom" name="telephone"><span></span><br>
<!-- email -->
<!-- <span>* e-mail :</span><input type="text" id="e-mail" name="adress"><span></span><br> -->
<!-- user name -->
<p id="rr" class="p"></p>
<span>LOGIN :</span><input type="text" name="login" id="user"><br>
<!-- sexe -->
<!-- <p>sexe :</p>
<div id="radio">
<input type="radio" name="choix" value="femme"> femme
<input type="radio" name="choix" value="homme"> homme
</div> -->
<!-- password -->
<span>mode de pass :</span><input type="text" name="password" id="psw"><br>
<p id="r" class="p"></p>
<!-- confermation modepass -->
<!-- ville -->
<p> ville</p>
<select name="ville">
<!-- options -->
<option value="1">ville 1</option>
<option value="2">ville 2</option>
<option value="3">ville 3</option>
<option value="4">ville 4</option>
<option value="5">ville 5</option>
</select>
<input type="submit" name="submit" value="Submit">
<!-- </div> -->
</form>
</body>
</html>