Solutions

This commit is contained in:
2025-01-25 16:42:37 +01:00
parent fbfce8033a
commit 3c31c28959
6 changed files with 75 additions and 5 deletions

11
price.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
require('mesFonctions.php');
$prixTotal = 0;
// Le prix de chaque item envoyé par le formulaire est ajouté au prix total
foreach ($_GET as $item) {
$prixTotal += trouverPrix($item);
}
echo ("Votre total est de $prixTotal €.");