Merci pour votre commande !
"Crudités", "pate" => "Pâté en croute", "oeufs" => "Oeufs mayo", "avocats" => "Avocats", "steack" => "Steack-Frites", "choucroute" => "Choucroute", "cassoulet" => "Cassoulet", "couscous" => "Couscous", "paella" => "Paella", "yaourt" => "Yaourt", "fruit" => "Fruits", "glace" => "Glace", "tartelette" => "Tartelette", "eau" => "Eau", "vin" => "Vin", "biere" => "Bière" ); $prix = array( "crudites" => 5.0, "pate" => 6.5, "oeufs" => 4.5, "avocats" => 7.5, "steack" => 10.0, "choucroute" => 15.0, "cassoulet" => 17.0, "couscous" => 13.0, "paella" => 14.5, "yaourt" => 2.5, "fruit" => 3.0, "glace" => 5.5, "tartelette" => 4.5, "eau" => 2.0, "vin" => 5.5, "biere" => 4.5 ); $total = 0; $entree = $_POST[ "entree" ]; if ( ! empty( $entree ) ) { for ( $i = 0; $i < count( $entree ); $i++ ) { echo $plats[ $entree[ $i ] ]."
"; $total += $prix[ $entree[ $i ] ]; } } $principal = $_POST[ "principal" ]; if ( ! empty( $principal ) ) { for ( $i = 0; $i < count( $principal ); $i++ ) { echo $plats[ $principal[ $i ] ]."
"; $total += $prix[ $principal[ $i ] ]; } } $dessert = $_POST[ "dessert" ]; if ( ! empty( $dessert ) ) { for ( $i = 0; $i < count( $dessert ); $i++ ) { echo $plats[ $dessert[ $i ] ]."
"; $total += $prix[ $dessert[ $i ] ]; } } $boisson = $_POST[ "boisson" ]; if ( ! empty( $boisson ) ) { for ( $i = 0; $i < count( $boisson ); $i++ ) { echo $plats[ $boisson[ $i ] ]."
"; $total += $prix[ $boisson[ $i ] ]; } } echo "

Total : $total euros

"; ?>