-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoskour.php
62 lines (22 loc) · 915 Bytes
/
oskour.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
<?php
include('templates/header.php');
include('functions/my-functions.php');
?>
<?php
$first_name = $_POST["firstname"];
$last_name = $_POST["lastname"];
$address = $_POST["address"];
$cp = $_POST["cp"];
$city = $_POST["city"];
$sql = 'INSERT INTO customers (`first_name`,`last_name`, `address`, `cp`, `city`) VALUES (:first_name, :last_name, :address, :cp, :city)';
$sth = $db->prepare($sql);
$sth->execute(['first_name'=>$first_name,'last_name'=>$last_name, 'address'=> $address, 'cp'=>$cp, 'city'=>$city]);
echo 'Merci maintenant dégage.';
echo 'Prénom : ' . $_POST["firstname"] . '<br>';
echo 'Nom de famille : ' . $_POST["lastname"] . '<br>';
echo 'Adresse : ' . $_POST["address"] . '<br>';
echo 'Code Postal : ' . $_POST["cp"] . '<br>';
echo 'Ville : ' . $_POST["city"] . '<br>';
?>
<?php include('templates/footer.php'); ?>
<?php include('templates/footer.php'); ?>